[llvm-commits] [llvm] r105304 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Bob Wilson
bob.wilson at apple.com
Tue Jun 1 17:16:08 PDT 2010
Author: bwilson
Date: Tue Jun 1 19:16:08 2010
New Revision: 105304
URL: http://llvm.org/viewvc/llvm-project?rev=105304&view=rev
Log:
Fix an obvious mistake: don't change the operands until all of them have been
checked and it is safe to proceed with the changes.
Modified:
llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=105304&r1=105303&r2=105304&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Tue Jun 1 19:16:08 2010
@@ -1200,8 +1200,6 @@
Proceed = false;
break;
}
- MO.setReg(DstReg);
- MO.setSubReg(NewSubIdx);
}
if (Proceed)
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
More information about the llvm-commits
mailing list