mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 05:57:23 +00:00
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
This commit is contained in:
parent
f6f4f7a149
commit
31ec841be1
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user