in functions that use a lot of callee saved regs, this can be more than

5 instructions away.

llvm-svn: 26801
This commit is contained in:
Chris Lattner 2006-03-16 21:31:45 +00:00
parent bf153651b1
commit 7f5361757b

View File

@ -315,7 +315,7 @@ void PPCRegisterInfo::emitPrologue(MachineFunction &MF) const {
// Scan the first few instructions of the prolog, looking for an UPDATE_VRSAVE
// instruction. If we find it, process it.
for (unsigned i = 0; MBBI != MBB.end() && i < 5; ++i, ++MBBI) {
for (unsigned i = 0; MBBI != MBB.end(); ++i, ++MBBI) {
if (MBBI->getOpcode() == PPC::UPDATE_VRSAVE) {
HandleVRSaveUpdate(MBBI, MF.getUsedPhysregs());
break;