[llvm] [AArch64] Lower partial add reduction to udot or svdot (PR #101010)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 07:37:36 PDT 2024


================
@@ -1988,6 +1988,17 @@ bool AArch64TargetLowering::shouldExpandGetActiveLaneMask(EVT ResVT,
   return false;
 }
 
+bool AArch64TargetLowering::shouldExpandPartialReductionIntrinsic(
+    const IntrinsicInst *I) const {
+
+  if (I->getIntrinsicID() != Intrinsic::experimental_vector_partial_reduce_add)
+    return true;
+
+  EVT VT = EVT::getEVT(I->getType());
+
----------------
paulwalker-arm wrote:

Up to you but to me this function has two blanks lines too many.

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


More information about the llvm-commits mailing list