mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Don't rely on the isDead() MachineOperand flag when updating LiveIntervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a566d63b61
commit
197a60a666
@ -320,7 +320,9 @@ void PHIElimination::LowerPHINode(MachineBasicBlock &MBB,
|
||||
}
|
||||
|
||||
LiveInterval &DestLI = LIS->getInterval(DestReg);
|
||||
if (NewInstr->getOperand(0).isDead()) {
|
||||
assert(DestLI.begin() != DestLI.end() &&
|
||||
"PHIs should have nonempty LiveIntervals.");
|
||||
if (DestLI.endIndex().isDead()) {
|
||||
// A dead PHI's live range begins and ends at the start of the MBB, but
|
||||
// the lowered copy, which will still be dead, needs to begin and end at
|
||||
// the copy instruction.
|
||||
|
Loading…
Reference in New Issue
Block a user