aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7 (patch)
treeea1f704c6a6b5437d761ff1ce16c2a3a67487b18 /lib
parent335fd3c7c2057b4e5fedb3161df44d7bc1759791 (diff)
downloadexternal_llvm-8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7.zip
external_llvm-8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7.tar.gz
external_llvm-8aa777d5ea8e73e2edf79fd35fd6b5c4e9949ca7.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp
index c8d2f3a..148449c 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;