[PATCH] D95245: [SVE] Add support for scalable vectorization of loops with int/fast FP reductions
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 10:26:28 PST 2021
dmgreen added inline comments.
================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfo.h:1310
+ /// \returns True if it is legal to vectorize the given reduction kind.
+ bool isLegalToVectorizeReduction(RecurKind RecKind, bool Scalable) const;
+
----------------
Does this need to check the type? Does an i128 reduction work, for example?
I presume if a <vscale x 4 x float> reduction works then any <vscale x ? x float> will work?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95245/new/
https://reviews.llvm.org/D95245
More information about the llvm-commits
mailing list