diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-16 09:49:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-16 09:49:18 +0000 |
commit | 66cb162f92c156717c7800dbc9d636cc57ec15ab (patch) | |
tree | 758d0db0c882ed07b776418c752e989e9f891f44 | |
parent | 723841076627c5e5b71cbf7771955389cede53cb (diff) | |
download | bcm5719-llvm-66cb162f92c156717c7800dbc9d636cc57ec15ab.tar.gz bcm5719-llvm-66cb162f92c156717c7800dbc9d636cc57ec15ab.zip |
Print <dead> def operands.
llvm-svn: 34343
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index df6205b7d8d..a39313310c2 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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 << "<dead>"; OS << " = "; ++StartOp; // Don't print this operand again! } |