From: Chris Lattner Date: Thu, 16 Mar 2006 21:31:45 +0000 (+0000) Subject: in functions that use a lot of callee saved regs, this can be more than X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7;p=oota-llvm.git in functions that use a lot of callee saved regs, this can be more than 5 instructions away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26801 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index c8d2f3a0554..148449c6d4d 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -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;