[llvm-commits] [llvm] r58072 - /llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Evan Cheng
evan.cheng at apple.com
Thu Oct 23 22:53:44 PDT 2008
Author: evancheng
Date: Fri Oct 24 00:53:44 2008
New Revision: 58072
URL: http://llvm.org/viewvc/llvm-project?rev=58072&view=rev
Log:
Fix a end() dereference; remove an abort() that wasn't meant to be left in.
Modified:
llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
Modified: llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp?rev=58072&r1=58071&r2=58072&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp (original)
+++ llvm/trunk/lib/CodeGen/PreAllocSplitting.cpp Fri Oct 24 00:53:44 2008
@@ -381,13 +381,13 @@
LastMO = Uses[0];
LastMI = LastMO->getParent();
} else {
+ MachineBasicBlock::iterator MEE = MBB->begin();
MachineBasicBlock::iterator MII;
- if (MBB == BarrierMBB) {
+ if (MBB == BarrierMBB)
MII = Barrier;
- --MII;
- } else
+ else
MII = MBB->end();
- for (MachineBasicBlock::iterator MEE = MBB->begin(); MII != MEE; --MII) {
+ while (--MII != MEE) {
MachineInstr *UseMI = &*MII;
if (!UseMIs.count(UseMI))
continue;
@@ -460,7 +460,6 @@
} else {
// Remove entire live range of the bb out of the live interval.
CurrLI->removeRange(LIs->getMBBStartIdx(MBB), LIs->getMBBEndIdx(MBB)+1);
- abort(); // FIXME
}
if (MBB == DefMBB)
More information about the llvm-commits
mailing list