diff options
author | Owen Anderson <resistor@mac.com> | 2008-11-18 20:53:59 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-11-18 20:53:59 +0000 |
commit | 5a92d4e657f90b63e6a1a94fe3909533e89c5357 (patch) | |
tree | 4392981dfd09787581c38a14e3372991dc2ce565 | |
parent | cbad42cfd1cc93a41ff26ea2e8895bfbc09f54f2 (diff) |
Fix a bug introduced by my previous patch. With this change, SPEC is now clean with prealloc splitting enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59544 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/PreAllocSplitting.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp index dfbc796cd3..2e385c8e8e 100644 --- a/lib/CodeGen/PreAllocSplitting.cpp +++ b/lib/CodeGen/PreAllocSplitting.cpp @@ -233,7 +233,7 @@ PreAllocSplitting::findRestorePoint(MachineBasicBlock *MBB, MachineInstr *MI, unsigned &RestoreIndex) { // FIXME: Allow spill to be inserted to the beginning of the mbb. Update mbb // begin index accordingly. - MachineBasicBlock::iterator Pt = MBB->getFirstTerminator(); + MachineBasicBlock::iterator Pt = MBB->end(); unsigned EndIdx = LIs->getMBBEndIdx(MBB); // Go bottom up if RefsInMBB is empty and the end of the mbb isn't beyond |