[llvm-commits] [llvm] r86918 - in /llvm/trunk: lib/Analysis/LazyValueInfo.cpp test/Transforms/JumpThreading/basic.ll

Chris Lattner sabre at nondot.org
Wed Nov 11 17:22:16 PST 2009


Author: lattner
Date: Wed Nov 11 19:22:16 2009
New Revision: 86918

URL: http://llvm.org/viewvc/llvm-project?rev=86918&view=rev
Log:
move some stuff into DEBUG's and turn on lazy-value-info for
the basic.ll testcase.

Modified:
    llvm/trunk/lib/Analysis/LazyValueInfo.cpp
    llvm/trunk/test/Transforms/JumpThreading/basic.ll

Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=86918&r1=86917&r2=86918&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Wed Nov 11 19:22:16 2009
@@ -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 @@
   
   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();

Modified: llvm/trunk/test/Transforms/JumpThreading/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/basic.ll?rev=86918&r1=86917&r2=86918&view=diff

==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/basic.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/basic.ll Wed Nov 11 19:22:16 2009
@@ -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()





More information about the llvm-commits mailing list