[llvm-commits] [llvm] r40022 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jul 18 16:34:54 PDT 2007
Author: evancheng
Date: Wed Jul 18 18:34:48 2007
New Revision: 40022
URL: http://llvm.org/viewvc/llvm-project?rev=40022&view=rev
Log:
Add comment.
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=40022&r1=40021&r2=40022&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Wed Jul 18 18:34:48 2007
@@ -369,6 +369,9 @@
// 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;
More information about the llvm-commits
mailing list