summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-12 01:22:16 +0000
committerChris Lattner <sabre@nondot.org>2009-11-12 01:22:16 +0000
commitb584d1e456efd0dd8cf678318f03dee4b7ea4391 (patch)
tree3d591ca1700442c8060c79b12b5a617fe270dd07
parentebbfbeef7d0ae5a5c9e581ac28a468a80beaa0bf (diff)
downloadbcm5719-llvm-b584d1e456efd0dd8cf678318f03dee4b7ea4391.tar.gz
bcm5719-llvm-b584d1e456efd0dd8cf678318f03dee4b7ea4391.zip
move some stuff into DEBUG's and turn on lazy-value-info for
the basic.ll testcase. llvm-svn: 86918
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp8
-rw-r--r--llvm/test/Transforms/JumpThreading/basic.ll2
2 files changed, 6 insertions, 4 deletions
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<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();
diff --git a/llvm/test/Transforms/JumpThreading/basic.ll b/llvm/test/Transforms/JumpThreading/basic.ll
index 1e948ed8825..514c865f9c9 100644
--- a/llvm/test/Transforms/JumpThreading/basic.ll
+++ b/llvm/test/Transforms/JumpThreading/basic.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading -S | FileCheck %s
+; RUN: opt %s -jump-threading -S -enable-jump-threading-lvi | FileCheck %s
declare i32 @f1()
declare i32 @f2()
OpenPOWER on IntegriCloud