[llvm] [SelectionDAG] Improve type legalisation for PARTIAL_REDUCE_MLA (PR #130935)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 23 06:49:48 PDT 2025


================
@@ -293,6 +295,8 @@ define <vscale x 4 x i64> @sdot_8to64(<vscale x 4 x i64> %acc, <vscale x 16 x i8
 ; CHECK-NEWLOWERING-NEXT:    sunpklo z4.h, z2.b
 ; CHECK-NEWLOWERING-NEXT:    sunpklo z5.h, z3.b
 ; CHECK-NEWLOWERING-NEXT:    sunpkhi z2.h, z2.b
+; CHECK-NEWLOWERING-NEXT:    sdot z0.d, z5.h, z4.h
----------------
MacDue wrote:

Both the `s/udot_8to64` cases would be better handled with a DAG combine that changes the accumulator to `i32` (which is what happens with the old lowering). 

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


More information about the llvm-commits mailing list