From: Evan Cheng Date: Wed, 18 Jul 2007 23:34:48 +0000 (+0000) Subject: Add comment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=273288c888027c64a0c0ba25a58fbf1f871b5311;p=oota-llvm.git Add comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40022 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 3d8618f6c4c..b714bac86a1 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;