diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-05 22:33:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-05 22:33:19 +0000 |
commit | f978c421e56dc77bc46d4e24e2c38947386253ac (patch) | |
tree | f9fe5e4e0f27d0c8fd7e642d595b3bcb09423575 /llvm/lib/Transforms | |
parent | aaaaec43e7ac99a70e37b631704ecb5b1d93d8f7 (diff) | |
download | bcm5719-llvm-f978c421e56dc77bc46d4e24e2c38947386253ac.tar.gz bcm5719-llvm-f978c421e56dc77bc46d4e24e2c38947386253ac.zip |
Add debug output
llvm-svn: 11139
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GCSE.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GCSE.cpp b/llvm/lib/Transforms/Scalar/GCSE.cpp index 3d700cb4da4..eb74b7c0a44 100644 --- a/llvm/lib/Transforms/Scalar/GCSE.cpp +++ b/llvm/lib/Transforms/Scalar/GCSE.cpp @@ -21,6 +21,7 @@ #include "llvm/Analysis/ValueNumbering.h" #include "llvm/Support/InstIterator.h" #include "Support/Statistic.h" +#include "Support/Debug.h" #include <algorithm> using namespace llvm; @@ -165,6 +166,9 @@ bool GCSE::EliminateRedundancies(Instruction *I, // void GCSE::ReplaceInstWithInst(Instruction *First, BasicBlock::iterator SI) { Instruction &Second = *SI; + + DEBUG(std::cerr << "GCSE: Substituting %" << First->getName() << " for: " + << Second); //cerr << "DEL " << (void*)Second << Second; |