From: Dan Gohman Date: Thu, 25 Sep 2008 01:06:50 +0000 (+0000) Subject: Add debug output to this pass. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=723ac3720f6d983e0ed01504964fde1aa63951ff;p=oota-llvm.git Add debug output to this pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56602 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/DeadMachineInstructionElim.cpp b/lib/CodeGen/DeadMachineInstructionElim.cpp index 881df1e6b66..718b6e2a5aa 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();