Live-through live interval is [mbb start, mbb end+1].

llvm-svn: 52431
This commit is contained in:
Evan Cheng 2008-06-17 20:13:36 +00:00
parent 1eb69314fa
commit f873ed1b10
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
for (unsigned i = 0, e = vi.AliveBlocks.size(); i != e; ++i) {
if (vi.AliveBlocks[i]) {
LiveRange LR(getMBBStartIdx(i),
getMBBEndIdx(i),
getMBBEndIdx(i)+1, // MBB ends at -1.
ValNo);
interval.addRange(LR);
DOUT << " +" << LR;