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

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 11 02:15:47 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) {
----------------
vfdff wrote:

hi @dtcxzyw
Because different predicates have some different logics to address,
I think it is fine to keep this PR to fix the issue in the comment link,
and I'll try to expand some others implemented separately.

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


More information about the llvm-commits mailing list