diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-25 01:06:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-25 01:06:50 +0000 |
commit | 723ac3720f6d983e0ed01504964fde1aa63951ff (patch) | |
tree | 20b48d42a30f27c36e7990eeedb7b8718d87bb3e /lib/CodeGen/DeadMachineInstructionElim.cpp | |
parent | 89d4a2848d63b22ec2e8174edb74f5f12ecf9d3d (diff) |
Add debug output to this pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DeadMachineInstructionElim.cpp')
-rw-r--r-- | lib/CodeGen/DeadMachineInstructionElim.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp index 881df1e6b6..718b6e2a5a 100644 --- a/lib/CodeGen/DeadMachineInstructionElim.cpp +++ b/lib/CodeGen/DeadMachineInstructionElim.cpp @@ -16,6 +16,7 @@ #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/Support/Compiler.h" +#include "llvm/Support/Debug.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" using namespace llvm; @@ -109,6 +110,7 @@ bool DeadMachineInstructionElim::runOnMachineFunction(MachineFunction &MF) { // If the instruction is dead, delete it! if (isDead(MI)) { + DOUT << "DeadMachineInstructionElim: DELETING: " << *MI; AnyChanges = true; MI->eraseFromParent(); MIE = MBB->rend(); |