[llvm] [X86][APX] Optimize usub.sat(X, 1) to cmp+adc with NDD (PR #208475)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 22:50:08 PDT 2026
================
@@ -1238,3 +1238,128 @@ bb2: ; preds = %bb2, %bb1
store ptr null, ptr %arg2, align 8
br i1 %arg3, label %bb1, label %bb2
}
+;
+define i8 @usubsat8_const1(i8 noundef %a) {
+; CHECK-LABEL: usubsat8_const1:
----------------
AntonyCJ30 wrote:
Updated lines 4-5 to --check-prefixes=CHECK,NF and removed duplicate NF blocks from the new tests. Existing tests remain unchanged. Thanks!
https://github.com/llvm/llvm-project/pull/208475
More information about the llvm-commits
mailing list