[llvm] [DAGCombiner] Fold subtraction if above threshold to `umin` (PR #134235)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 8 06:45:24 PDT 2025


================
@@ -1479,3 +1479,215 @@ entry:
   %cmp = icmp ne i32 %popcnt, 1
   ret i1 %cmp
 }
+
+define i8 @sub_if_uge_i8(i8 %x, i8 %y) {
----------------
lukel97 wrote:

The ULT just seems to be the canonical form from instcombine

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


More information about the llvm-commits mailing list