[llvm-commits] [llvm] r41024 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Evan Cheng
evan.cheng at apple.com
Sat Aug 11 18:26:20 PDT 2007
Author: evancheng
Date: Sat Aug 11 20:26:19 2007
New Revision: 41024
URL: http://llvm.org/viewvc/llvm-project?rev=41024&view=rev
Log:
No need to remove dead range from soon-to-be-dead live interval. Its val# may be out of whack.
Modified:
llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=41024&r1=41023&r2=41024&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Sat Aug 11 20:26:19 2007
@@ -316,9 +316,9 @@
}
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.
More information about the llvm-commits
mailing list