OSDN Git Service

in functions that use a lot of callee saved regs, this can be more than
authorChris Lattner <sabre@nondot.org>
Thu, 16 Mar 2006 21:31:45 +0000 (21:31 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 16 Mar 2006 21:31:45 +0000 (21:31 +0000)
5 instructions away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26801 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCRegisterInfo.cpp

index c8d2f3a..148449c 100644 (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;