aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-18 23:34:48 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-18 23:34:48 +0000
commit60cc087089be0fa39183f9f4737cadb84a6ed007 (patch)
tree36c63493b23cd64402ac7e58cbd465cab4570c37 /lib
parent1783ae89078a68f5822dd79c98ccdfc71a3a833a (diff)
downloadexternal_llvm-60cc087089be0fa39183f9f4737cadb84a6ed007.zip
external_llvm-60cc087089be0fa39183f9f4737cadb84a6ed007.tar.gz
external_llvm-60cc087089be0fa39183f9f4737cadb84a6ed007.tar.bz2
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40022 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 3d8618f..b714bac 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -369,6 +369,9 @@ bool SimpleRegisterCoalescing::JoinCopy(MachineInstr *CopyMI,
// If the intervals were swapped by Join, swap them back so that the register
// mapping (in the r2i map) is correct.
if (Swapped) SrcInt.swap(DstInt);
+
+ // repSrcReg is guarateed to be the register whose live interval that is
+ // being merged.
li_->removeInterval(repSrcReg);
r2rMap_[repSrcReg] = repDstReg;