diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-15 06:39:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-15 06:39:41 +0000 |
commit | 1a36b7d836b203ecaa5d91f051e6a6d3aacc6741 (patch) | |
tree | 09d3bd57f500e1bf0b06067b633695fd62d141cb /llvm/lib/Analysis/ValueTracking.cpp | |
parent | 61fa0dcac30a8d8f8a61fa46361fe30ce3cad97f (diff) | |
download | bcm5719-llvm-1a36b7d836b203ecaa5d91f051e6a6d3aacc6741.tar.gz bcm5719-llvm-1a36b7d836b203ecaa5d91f051e6a6d3aacc6741.zip |
[ValueTracking] Replace all uses of ComputeSignBit with computeKnownBits.
This patch finishes off the conversion of ComputeSignBit to computeKnownBits.
Differential Revision: https://reviews.llvm.org/D33166
llvm-svn: 303035
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index ad7b8d3e31a..cba7363a0af 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -169,15 +169,6 @@ bool llvm::haveNoCommonBitsSet(const Value *LHS, const Value *RHS, } -void llvm::ComputeSignBit(const Value *V, bool &KnownZero, bool &KnownOne, - const DataLayout &DL, unsigned Depth, - AssumptionCache *AC, const Instruction *CxtI, - const DominatorTree *DT) { - KnownBits Known = computeKnownBits(V, DL, Depth, AC, CxtI, DT); - KnownZero = Known.isNonNegative(); - KnownOne = Known.isNegative(); -} - static bool isKnownToBeAPowerOfTwo(const Value *V, bool OrZero, unsigned Depth, const Query &Q); |