1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fix a bug introduced by my previous patch. With this change, SPEC is now clean with prealloc splitting enabled.

llvm-svn: 59544
This commit is contained in:
Owen Anderson 2008-11-18 20:53:59 +00:00
parent 04e99d0f3f
commit 57a8a95293

View File

@ -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