[llvm-commits] [llvm] r156867 - /llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue May 15 15:20:27 PDT 2012
Author: stoklund
Date: Tue May 15 17:20:27 2012
New Revision: 156867
URL: http://llvm.org/viewvc/llvm-project?rev=156867&view=rev
Log:
Handle NewReg==OldReg in renameRegister().
This can happen when widening a virtual register to a super-register
class.
Modified:
llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
Modified: llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp?rev=156867&r1=156866&r2=156867&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveDebugVariables.cpp Tue May 15 17:20:27 2012
@@ -721,7 +721,8 @@
if (TargetRegisterInfo::isVirtualRegister(NewReg))
mapVirtReg(NewReg, UV);
- virtRegToEqClass.erase(OldReg);
+ if (OldReg != NewReg)
+ virtRegToEqClass.erase(OldReg);
do {
UV->renameRegister(OldReg, NewReg, SubIdx, TRI);
More information about the llvm-commits
mailing list