[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp

Evan Cheng evan.cheng at apple.com
Fri Feb 16 01:49:35 PST 2007



Changes in directory llvm/lib/CodeGen:

MachineInstr.cpp updated: 1.140 -> 1.141
---
Log message:

Print <dead> def operands.

---
Diffs of the changes:  (+2 -0)

 MachineInstr.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.140 llvm/lib/CodeGen/MachineInstr.cpp:1.141
--- llvm/lib/CodeGen/MachineInstr.cpp:1.140	Fri Dec 15 20:15:42 2006
+++ llvm/lib/CodeGen/MachineInstr.cpp	Fri Feb 16 03:49:18 2007
@@ -263,6 +263,8 @@
    // 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!
   }






More information about the llvm-commits mailing list