summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-14 01:56:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-14 01:56:58 +0000
commit74c69f7588ba16b4d20837e34e492316d6163ebe (patch)
treeda6cd4070156f8a30c8ea93808c7d8a5df2b7d34 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
parentdbe8497d4582de08d6e35789d3086274f96498c7 (diff)
downloadbcm5719-llvm-74c69f7588ba16b4d20837e34e492316d6163ebe.tar.gz
bcm5719-llvm-74c69f7588ba16b4d20837e34e492316d6163ebe.zip
Kill info update bugs.
llvm-svn: 41064
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
index fef2fde32ae..fc88ffed501 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -559,8 +559,8 @@ bool SimpleRegisterCoalescing::SimpleJoin(LiveInterval &LHS, LiveInterval &RHS)
// Okay, the final step is to loop over the RHS live intervals, adding them to
// the LHS.
- LHS.MergeRangesInAsValue(RHS, LHSValNo);
LHS.addKillsForValNum(LHSValNo, VNI.kills);
+ LHS.MergeRangesInAsValue(RHS, LHSValNo);
LHS.weight += RHS.weight;
if (RHS.preference && !LHS.preference)
LHS.preference = RHS.preference;
OpenPOWER on IntegriCloud