mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Don't allow the restore point to be placed after terminators. With this change,
MultiSource/Applications is clean with the prealloc splitter. Some failures remain in SPEC. llvm-svn: 59267
This commit is contained in:
parent
de9fdff884
commit
aa9f1836d9
@ -233,13 +233,13 @@ 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->end();
|
||||
MachineBasicBlock::iterator Pt = MBB->getFirstTerminator();
|
||||
unsigned EndIdx = LIs->getMBBEndIdx(MBB);
|
||||
|
||||
// Go bottom up if RefsInMBB is empty and the end of the mbb isn't beyond
|
||||
// the last index in the live range.
|
||||
if (RefsInMBB.empty() && LastIdx >= EndIdx) {
|
||||
MachineBasicBlock::iterator MII = MBB->end();
|
||||
MachineBasicBlock::iterator MII = MBB->getFirstTerminator();
|
||||
MachineBasicBlock::iterator EndPt = MI;
|
||||
--MII;
|
||||
do {
|
||||
|
Loading…
Reference in New Issue
Block a user