[llvm] [InstSimplify] Simplify the select with integer comparison relationship (PR #66668)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 11 00:52:39 PST 2023


================
@@ -8291,6 +8291,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) {
----------------
dtcxzyw wrote:

Can we handle more predicates?


https://github.com/llvm/llvm-project/pull/66668


More information about the llvm-commits mailing list