Add debug output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-05 22:33:19 +00:00
parent 741f6b44c9
commit 79fc865ccb

View File

@ -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;