summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-25 01:06:50 +0000
committerDan Gohman <gohman@apple.com>2008-09-25 01:06:50 +0000
commitb873aa632cee7e05bfaf15cdec78939ea0994bee (patch)
tree3e08d6097573838e29a1ff68f370eaa3c71437f1 /llvm/lib/CodeGen
parent72e4b0b54c7d175cc91ed7588a68a5fa0b037004 (diff)
downloadbcm5719-llvm-b873aa632cee7e05bfaf15cdec78939ea0994bee.tar.gz
bcm5719-llvm-b873aa632cee7e05bfaf15cdec78939ea0994bee.zip
Add debug output to this pass.
llvm-svn: 56602
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/DeadMachineInstructionElim.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp b/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
index 881df1e6b66..718b6e2a5aa 100644
--- a/llvm/lib/CodeGen/DeadMachineInstructionElim.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud