From b584d1e456efd0dd8cf678318f03dee4b7ea4391 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Nov 2009 01:22:16 +0000 Subject: move some stuff into DEBUG's and turn on lazy-value-info for the basic.ll testcase. llvm-svn: 86918 --- llvm/lib/Analysis/LazyValueInfo.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp') diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp index b4f23fd96bd..c17b7274594 100644 --- a/llvm/lib/Analysis/LazyValueInfo.cpp +++ b/llvm/lib/Analysis/LazyValueInfo.cpp @@ -12,12 +12,14 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "lazy-value-info" #include "llvm/Analysis/LazyValueInfo.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/Analysis/ConstantFolding.h" #include "llvm/Target/TargetData.h" #include "llvm/Support/CFG.h" +#include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/PointerIntPair.h" @@ -257,11 +259,11 @@ Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB) { DenseMap BlockValues; - errs() << "Getting value " << *V << " at end of block '" - << BB->getName() << "'\n"; + DEBUG(errs() << "Getting value " << *V << " at end of block '" + << BB->getName() << "'\n"); LVILatticeVal Result = GetValueInBlock(V, BB, BlockValues); - errs() << " Result = " << Result << "\n"; + DEBUG(errs() << " Result = " << Result << "\n"); if (Result.isConstant()) return Result.getConstant(); -- cgit v1.2.3