Skip to content

Commit 5fef791

Browse files
[Analysis] Remove getInverseMinMaxPred
The last uses of getInverseMinMaxPred were removed on February 24, 2022 in commit 5423b0a.
1 parent 898b6c5 commit 5fef791

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

llvm/include/llvm/Analysis/ValueTracking.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,6 @@ SelectPatternFlavor getInverseMinMaxFlavor(SelectPatternFlavor SPF);
769769

770770
Intrinsic::ID getInverseMinMaxIntrinsic(Intrinsic::ID MinMaxID);
771771

772-
/// Return the canonical inverse comparison predicate for the specified
773-
/// minimum/maximum flavor.
774-
CmpInst::Predicate getInverseMinMaxPred(SelectPatternFlavor SPF);
775-
776772
/// Return the minimum or maximum constant value for the specified integer
777773
/// min/max flavor and type.
778774
APInt getMinMaxLimit(SelectPatternFlavor SPF, unsigned BitWidth);

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6481,10 +6481,6 @@ Intrinsic::ID llvm::getInverseMinMaxIntrinsic(Intrinsic::ID MinMaxID) {
64816481
}
64826482
}
64836483

6484-
CmpInst::Predicate llvm::getInverseMinMaxPred(SelectPatternFlavor SPF) {
6485-
return getMinMaxPred(getInverseMinMaxFlavor(SPF));
6486-
}
6487-
64886484
APInt llvm::getMinMaxLimit(SelectPatternFlavor SPF, unsigned BitWidth) {
64896485
switch (SPF) {
64906486
case SPF_SMAX: return APInt::getSignedMaxValue(BitWidth);

0 commit comments

Comments
 (0)