diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-24 16:53:03 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-24 16:53:03 +0000 |
commit | a2025eaaef419727f77fe7cfc2b6b1aea4fa0a8d (patch) | |
tree | c4fdd5ddf15323a7050c99144a7247b9d785c64c /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 6349380fa412d6082ce4ec017080267643b2188f (diff) | |
download | bcm5719-llvm-a2025eaaef419727f77fe7cfc2b6b1aea4fa0a8d.tar.gz bcm5719-llvm-a2025eaaef419727f77fe7cfc2b6b1aea4fa0a8d.zip |
[ValueTracking] Add OptimizationRemarkEmitter to the other signature for commuteKnownBits.
This is needed for an upcoming patch.
llvm-svn: 303772
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 8e6c1096eec..bd79cd56a18 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -149,8 +149,10 @@ static KnownBits computeKnownBits(const Value *V, unsigned Depth, KnownBits llvm::computeKnownBits(const Value *V, const DataLayout &DL, unsigned Depth, AssumptionCache *AC, const Instruction *CxtI, - const DominatorTree *DT) { - return ::computeKnownBits(V, Depth, Query(DL, AC, safeCxtI(V, CxtI), DT)); + const DominatorTree *DT, + OptimizationRemarkEmitter *ORE) { + return ::computeKnownBits(V, Depth, + Query(DL, AC, safeCxtI(V, CxtI), DT, ORE)); } bool llvm::haveNoCommonBitsSet(const Value *LHS, const Value *RHS, |