[llvm] 5fef791 - [Analysis] Remove getInverseMinMaxPred
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 20 13:30:25 PST 2022
Author: Kazu Hirata
Date: 2022-11-20T13:30:19-08:00
New Revision: 5fef791cb9eb518714220ccb814d3aaf14cad476
URL: https://github.com/llvm/llvm-project/commit/5fef791cb9eb518714220ccb814d3aaf14cad476
DIFF: https://github.com/llvm/llvm-project/commit/5fef791cb9eb518714220ccb814d3aaf14cad476.diff
LOG: [Analysis] Remove getInverseMinMaxPred
The last uses of getInverseMinMaxPred were removed on February 24,
2022 in commit 5423b0a52567b2fba8cbae3afee760f53c3f14d2.
Added:
Modified:
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/ValueTracking.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ValueTracking.h b/llvm/include/llvm/Analysis/ValueTracking.h
index 4d413d49fa72d..8bef5925e3362 100644
--- a/llvm/include/llvm/Analysis/ValueTracking.h
+++ b/llvm/include/llvm/Analysis/ValueTracking.h
@@ -769,10 +769,6 @@ SelectPatternFlavor getInverseMinMaxFlavor(SelectPatternFlavor SPF);
Intrinsic::ID getInverseMinMaxIntrinsic(Intrinsic::ID MinMaxID);
-/// Return the canonical inverse comparison predicate for the specified
-/// minimum/maximum flavor.
-CmpInst::Predicate getInverseMinMaxPred(SelectPatternFlavor SPF);
-
/// Return the minimum or maximum constant value for the specified integer
/// min/max flavor and type.
APInt getMinMaxLimit(SelectPatternFlavor SPF, unsigned BitWidth);
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 1d8f26d4ebe36..09b81313d8a1b 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -6481,10 +6481,6 @@ Intrinsic::ID llvm::getInverseMinMaxIntrinsic(Intrinsic::ID MinMaxID) {
}
}
-CmpInst::Predicate llvm::getInverseMinMaxPred(SelectPatternFlavor SPF) {
- return getMinMaxPred(getInverseMinMaxFlavor(SPF));
-}
-
APInt llvm::getMinMaxLimit(SelectPatternFlavor SPF, unsigned BitWidth) {
switch (SPF) {
case SPF_SMAX: return APInt::getSignedMaxValue(BitWidth);
More information about the llvm-commits
mailing list