mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-23 12:08:25 +00:00
move some stuff into DEBUG's and turn on lazy-value-info for
the basic.ll testcase. llvm-svn: 86918
This commit is contained in:
parent
1764cc3934
commit
46056d81aa
@ -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();
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user