aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Transforms/Scalar/GCSE.cpp4
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;