summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-16 21:31:45 +0000
committerChris Lattner <sabre@nondot.org>2006-03-16 21:31:45 +0000
commit0b27047a6cf6e65663b4705f9d4f3a66f1069ee4 (patch)
tree883c7f61515c9c1bf9c08a0ba5bf06eae59f82ac
parentfd9f3e8ed30f93f2a0cf7e5b6356dafa7929bfbb (diff)
downloadbcm5719-llvm-0b27047a6cf6e65663b4705f9d4f3a66f1069ee4.tar.gz
bcm5719-llvm-0b27047a6cf6e65663b4705f9d4f3a66f1069ee4.zip
in functions that use a lot of callee saved regs, this can be more than
5 instructions away. llvm-svn: 26801
-rw-r--r--llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
index c8d2f3a0554..148449c6d4d 100644
--- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud