[llvm] [AArch64] Lower partial add reduction to udot or svdot (PR #101010)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 07:46:12 PDT 2024
================
@@ -1971,6 +1971,57 @@ bool AArch64TargetLowering::shouldExpandGetActiveLaneMask(EVT ResVT,
return false;
}
+bool AArch64TargetLowering::shouldExpandPartialReductionIntrinsic(
+ const CallInst *CI) const {
+ const bool TargetLowers = false;
+ const bool GenericLowers = true;
+
+ auto *I = dyn_cast<IntrinsicInst>(CI);
+ if (!I)
+ return GenericLowers;
----------------
sdesmalen-arm wrote:
Should this be an assert? I would expect this only to be called on intrinsic calls to `experimental_vector_partial_reduce_add` (or similar)
https://github.com/llvm/llvm-project/pull/101010
More information about the llvm-commits
mailing list