No need to remove dead range from soon-to-be-dead live interval. Its val# may be out of whack.
llvm-svn: 41024
This commit is contained in:
parent
460e34afed
commit
af21e9550e
|
|
@ -316,9 +316,9 @@ bool SimpleRegisterCoalescing::JoinCopy(MachineInstr *CopyMI,
|
|||
}
|
||||
|
||||
if (isShorten || isDead) {
|
||||
// Shorten the live interval.
|
||||
LiveInterval &LiveInInt = (repSrcReg == DstInt.reg) ? DstInt : SrcInt;
|
||||
LiveInInt.removeRange(RemoveStart, RemoveEnd);
|
||||
// Shorten the destination live interval.
|
||||
if (repSrcReg == DstInt.reg)
|
||||
DstInt.removeRange(RemoveStart, RemoveEnd);
|
||||
}
|
||||
} else {
|
||||
// Coalescing failed.
|
||||
|
|
|
|||
Loading…
Reference in New Issue