diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-06-02 00:16:08 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-06-02 00:16:08 +0000 |
commit | b2c2a972b075542ab5a02c554ec4a5cc0bcb95a0 (patch) | |
tree | dbaaddc3d61bdd230ce80c437c445911af1167eb | |
parent | b242563741688ab1b3eb4cf6dc981b9364d8841e (diff) | |
download | external_llvm-b2c2a972b075542ab5a02c554ec4a5cc0bcb95a0.zip external_llvm-b2c2a972b075542ab5a02c554ec4a5cc0bcb95a0.tar.gz external_llvm-b2c2a972b075542ab5a02c554ec4a5cc0bcb95a0.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105304 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 3f7a610..f61dbc9 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1200,8 +1200,6 @@ TwoAddressInstructionPass::CoalesceExtSubRegs(SmallVector<unsigned,4> &Srcs, Proceed = false; break; } - MO.setReg(DstReg); - MO.setSubReg(NewSubIdx); } if (Proceed) for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg), |