summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 0f6b0ec3629..8d52a186b91 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -3935,9 +3935,9 @@ static Optional<bool> isImpliedCondMatchingOperands(CmpInst::Predicate APred,
std::swap(BLHS, BRHS);
BPred = ICmpInst::getSwappedPredicate(BPred);
}
- if (CmpInst::isTrueWhenOperandsMatch(APred, BPred))
+ if (CmpInst::isImpliedTrueByMatchingCmp(APred, BPred))
return true;
- if (CmpInst::isFalseWhenOperandsMatch(APred, BPred))
+ if (CmpInst::isImpliedFalseByMatchingCmp(APred, BPred))
return false;
return None;
OpenPOWER on IntegriCloud