[llvm] [SDAG] (setcc (sub nsw a, b), zero, s??) -> (setcc a, b, s??) (PR #175459)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 12 01:30:34 PST 2026


================
@@ -331,13 +331,31 @@ entry:
   ret i32 %or
 }
 
+define i16 @combine_setcc_slt_add_nsw(<16 x i8> %a, <16 x i8> %b) {
----------------
DaKnig wrote:

removed the nuw from the code. it seems to me that you are right, this should be indeed optimized way before my code.

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


More information about the llvm-commits mailing list