From 3846a304eb3c0647b69326ea59853d949ecdaa9b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 5 Feb 2004 22:33:19 +0000 Subject: [PATCH] Add debug output llvm-svn: 11139 --- lib/Transforms/Scalar/GCSE.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index 3d700cb4da4..eb74b7c0a44 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 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;