mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
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
afb3c33c2a
commit
3b211635e8
@ -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…
x
Reference in New Issue
Block a user