[llvm] [AArch64][NEON] Lower fixed-width add partial reductions to dot product (PR #107078)

Sam Tebbs via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 05:51:35 PDT 2024


================
@@ -21781,7 +21782,8 @@ SDValue tryLowerPartialReductionToDot(SDNode *N,
              Intrinsic::experimental_vector_partial_reduce_add &&
          "Expected a partial reduction node");
 
-  if (!Subtarget->isSVEorStreamingSVEAvailable())
+  if (!Subtarget->isSVEorStreamingSVEAvailable() &&
----------------
SamTebbs33 wrote:

Thanks for spotting that missing, I've modified the check to also check for the dotprod feature when SVE is available and we're using a fixed-width vector.

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


More information about the llvm-commits mailing list