[llvm-commits] [llvm] r56602 - /llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp

Dan Gohman gohman at apple.com
Wed Sep 24 18:06:54 PDT 2008


Author: djg
Date: Wed Sep 24 20:06:50 2008
New Revision: 56602

URL: http://llvm.org/viewvc/llvm-project?rev=56602&view=rev
Log:
Add debug output to this pass.

Modified:
    llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp

Modified: llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp?rev=56602&r1=56601&r2=56602&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp (original)
+++ llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp Wed Sep 24 20:06:50 2008
@@ -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 @@
 
       // If the instruction is dead, delete it!
       if (isDead(MI)) {
+        DOUT << "DeadMachineInstructionElim: DELETING: " << *MI;
         AnyChanges = true;
         MI->eraseFromParent();
         MIE = MBB->rend();





More information about the llvm-commits mailing list