[llvm] [AArch64][GlobalISel] Add legalization for vecreduce.fmul (PR #73309)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 24 16:00:57 PST 2023
================
@@ -977,6 +977,19 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
.clampMaxNumElements(1, s32, 2)
.lower();
+ // For fmul reductions we need to split up into individual operations. We
+ // clamp to 128 bit vectors then to 64bit vectors to produce a cascade of
+ // smaller types, followed by scalarizing what remains.
----------------
aemerson wrote:
Why not clamp directly to 64b?
https://github.com/llvm/llvm-project/pull/73309
More information about the llvm-commits
mailing list