diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index df6205b7d8d..a39313310c2 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -263,6 +263,8 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine *TM) const { // Specialize printing if op#0 is definition if (getNumOperands() && getOperand(0).isReg() && getOperand(0).isDef()) { ::print(getOperand(0), OS, TM); + if (getOperand(0).isDead()) + OS << ""; OS << " = "; ++StartOp; // Don't print this operand again! }