1
0
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:
Evan Cheng 2007-08-12 01:26:19 +00:00
parent afb3c33c2a
commit 3b211635e8

View File

@ -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.