diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-16 19:32:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-16 19:32:40 +0000 |
commit | 31ec841be1f51a60f5b655aa2a008eb68e48c07a (patch) | |
tree | fa8f50279e611d1b2f66c97b5d64bcafa44f2416 /lib | |
parent | f6f4f7a149e2864cc0441afcbed5fd99ff4b9587 (diff) |
Remove special case handling of empty MBBs now that we assign indices to them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 5bb3cfa459..196109ba09 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -365,14 +365,11 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb, // live interval. for (unsigned i = 0, e = vi.AliveBlocks.size(); i != e; ++i) { if (vi.AliveBlocks[i]) { - MachineBasicBlock *MBB = mf_->getBlockNumbered(i); - if (!MBB->empty()) { - LiveRange LR(getMBBStartIdx(i), - getInstructionIndex(&MBB->back()) + InstrSlots::NUM, - ValNo); - interval.addRange(LR); - DOUT << " +" << LR; - } + LiveRange LR(getMBBStartIdx(i), + getMBBEndIdx(i), + ValNo); + interval.addRange(LR); + DOUT << " +" << LR; } } |