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 | 79fc865ccb0cbe6438851c00ba5ad855ad0a8d2f (patch) | |
tree | 95dd8d9cdbf25986932bff27f9726c368d908a22 | |
parent | 741f6b44c98460e57142a2f6025bbf3be6b01f45 (diff) |
Add debug output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11139 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/GCSE.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index 3d700cb4da..eb74b7c0a4 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/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; |