mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Fix a end() dereference; remove an abort() that wasn't meant to be left in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79cce5c51b
commit
2efe3fd79a
@ -381,13 +381,13 @@ PreAllocSplitting::ShrinkWrapToLastUse(MachineBasicBlock *MBB,
|
|||||||
LastMO = Uses[0];
|
LastMO = Uses[0];
|
||||||
LastMI = LastMO->getParent();
|
LastMI = LastMO->getParent();
|
||||||
} else {
|
} else {
|
||||||
|
MachineBasicBlock::iterator MEE = MBB->begin();
|
||||||
MachineBasicBlock::iterator MII;
|
MachineBasicBlock::iterator MII;
|
||||||
if (MBB == BarrierMBB) {
|
if (MBB == BarrierMBB)
|
||||||
MII = Barrier;
|
MII = Barrier;
|
||||||
--MII;
|
else
|
||||||
} else
|
|
||||||
MII = MBB->end();
|
MII = MBB->end();
|
||||||
for (MachineBasicBlock::iterator MEE = MBB->begin(); MII != MEE; --MII) {
|
while (--MII != MEE) {
|
||||||
MachineInstr *UseMI = &*MII;
|
MachineInstr *UseMI = &*MII;
|
||||||
if (!UseMIs.count(UseMI))
|
if (!UseMIs.count(UseMI))
|
||||||
continue;
|
continue;
|
||||||
@ -460,7 +460,6 @@ PreAllocSplitting::ShrinkWrapLiveInterval(VNInfo *ValNo,
|
|||||||
} else {
|
} else {
|
||||||
// Remove entire live range of the bb out of the live interval.
|
// Remove entire live range of the bb out of the live interval.
|
||||||
CurrLI->removeRange(LIs->getMBBStartIdx(MBB), LIs->getMBBEndIdx(MBB)+1);
|
CurrLI->removeRange(LIs->getMBBStartIdx(MBB), LIs->getMBBEndIdx(MBB)+1);
|
||||||
abort(); // FIXME
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MBB == DefMBB)
|
if (MBB == DefMBB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user