[llvm] [InstSimplify] Simplify the select with integer comparison relationship (PR #66668)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 09:01:16 PST 2023
================
@@ -8294,6 +8294,17 @@ static std::optional<bool> isImpliedCondICmps(const ICmpInst *LHS,
if (areMatchingOperands(L0, L1, R0, R1, AreSwappedOps))
return isImpliedCondMatchingOperands(LPred, RPred, AreSwappedOps);
+ if (LPred == ICmpInst::ICMP_SGT) {
----------------
goldsteinn wrote:
Should also handle the less-than variant no?
https://github.com/llvm/llvm-project/pull/66668
More information about the llvm-commits
mailing list