projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6f4f7a
)
Remove special case handling of empty MBBs now that we assign indices to them.
author
Owen Anderson
<resistor@mac.com>
Mon, 16 Jun 2008 19:32:40 +0000
(19:32 +0000)
committer
Owen Anderson
<resistor@mac.com>
Mon, 16 Jun 2008 19:32:40 +0000
(19:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52345
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/LiveIntervalAnalysis.cpp
b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 5bb3cfa4596fbaa61c280949553418f7dee8dc3e..196109ba09d4fa66d2c936ec6c933c5087b03533 100644
(file)
--- 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;
}
}