[llvm] [AArch64] Fold four and eight way partial reductions with [SU]ADDLP (PR #214636)

Adam Scott via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 07:36:22 PDT 2026


================
@@ -35082,6 +35090,13 @@ AArch64TargetLowering::LowerPARTIAL_REDUCE_MLA(SDValue Op,
     return DAG.getNode(ISD::SUB, DL, ResultVT, BiasedDot, BiasCorrection);
   }
 
+  // The wider Neon shapes left here have no single instruction, so leave them
+  // to the generic expansion, which chains the two-way reductions above.
+  if (!Subtarget->isSVEorStreamingSVEAvailable() &&
+      OpVT.isFixedLengthVector() &&
----------------
as4230 wrote:

It was unnecessary. I removed it.

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


More information about the llvm-commits mailing list