diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 3f7a610fd00..f61dbc95d1a 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1200,8 +1200,6 @@ TwoAddressInstructionPass::CoalesceExtSubRegs(SmallVector &Srcs, Proceed = false; break; } - MO.setReg(DstReg); - MO.setSubReg(NewSubIdx); } if (Proceed) for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),