[llvm-commits] [llvm] r52345 - /llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Owen Anderson
resistor at mac.com
Mon Jun 16 12:32:41 PDT 2008
Author: resistor
Date: Mon Jun 16 14:32:40 2008
New Revision: 52345
URL: http://llvm.org/viewvc/llvm-project?rev=52345&view=rev
Log:
Remove special case handling of empty MBBs now that we assign indices to them.
Modified:
llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=52345&r1=52344&r2=52345&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Mon Jun 16 14:32:40 2008
@@ -365,14 +365,11 @@
// 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;
}
}
More information about the llvm-commits
mailing list