OSDN Git Service

Print <dead> def operands.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 16 Feb 2007 09:49:18 +0000 (09:49 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 16 Feb 2007 09:49:18 +0000 (09:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34343 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index df6205b..a393133 100644 (file)
@@ -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 << "<dead>";
     OS << " = ";
     ++StartOp;   // Don't print this operand again!
   }