[llvm] [DAG] Fold logic of zero-checks to multiplication for MinSize (PR #171805)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 20:54:53 PST 2025


================
@@ -54,4 +53,48 @@ entry:
   %cmp2 = icmp eq i16 %b, 0
   %or = or i1 %cmp1, %cmp2
   ret i1 %or
-}
\ No newline at end of file
+}
+
+define i1 @foldLogicSetCCToMul4(i16 zeroext %a, i16 zeroext %b) minsize {
+; CHECK-LABEL: foldLogicSetCCToMul4:
+; CHECK-NOT: mul
----------------
TelGome wrote:

Okay, I’ve updated the testcases accordingly.

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


More information about the llvm-commits mailing list