projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
741f6b4
)
Add debug output
author
Chris Lattner
<sabre@nondot.org>
Thu, 5 Feb 2004 22:33:19 +0000
(22:33 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 5 Feb 2004 22:33:19 +0000
(22:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11139
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/GCSE.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GCSE.cpp
b/lib/Transforms/Scalar/GCSE.cpp
index 3d700cb4da4fd10c87492d1b58c7e9ee130d8b57..eb74b7c0a4484c15376f52a5f5bf246f38f7c3b1 100644
(file)
--- 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;