[llvm] [DAGCombiner] Fold subtraction if above threshold to `umin` (PR #134235)
Piotr Fusik via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 04:38:57 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) {
----------------
pfusik wrote:
Do you mean the function name? `sub_zero_if_ult_y_otherwise_sub_y` is more verbose, but I don't think it's easier to understand.
https://github.com/llvm/llvm-project/pull/134235
More information about the llvm-commits
mailing list