When a physreg is live-in and live through a basic block, make sure its live

range covers the entire block.

The live range can't be terminated at a random instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2011-04-30 19:12:33 +00:00
parent 7d6eb5a018
commit ec7e4fff96

View File

@ -638,7 +638,7 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
end = MIIdx.getStoreIndex();
} else {
DEBUG(dbgs() << " live through");
end = baseIndex;
end = getMBBEndIdx(MBB);
}
}