diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-07-18 23:34:48 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-18 23:34:48 +0000 |
| commit | a8d152a22ad0b04464138b4df719e908ca543cbc (patch) | |
| tree | 5e54cf94eba883721fdd8ac30c71ce5553d7103f /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | |
| parent | dcc3451f8a0014dcf30ccb6221c843cd42635e74 (diff) | |
| download | bcm5719-llvm-a8d152a22ad0b04464138b4df719e908ca543cbc.tar.gz bcm5719-llvm-a8d152a22ad0b04464138b4df719e908ca543cbc.zip | |
Add comment.
llvm-svn: 40022
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 3d8618f6c4c..b714bac86a1 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/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; |

