diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-12 01:22:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-12 01:22:16 +0000 |
commit | b8c124c3439ae5fad6a6c8a7aa0d3dd48787d265 (patch) | |
tree | 7fc4269ec145e3c84061d4c09982b502567a7619 /lib/Analysis/LazyValueInfo.cpp | |
parent | 5cf0aedd0b8df5479a7df9dddbd029070eaae776 (diff) |
move some stuff into DEBUG's and turn on lazy-value-info for
the basic.ll testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LazyValueInfo.cpp')
-rw-r--r-- | lib/Analysis/LazyValueInfo.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index b4f23fd96b..c17b727459 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/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<BasicBlock*, LVILatticeVal> 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(); |