[llvm] [LoopVectorizer] Add support for partial reductions (PR #92418)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 05:59:49 PDT 2024
================
@@ -331,6 +344,8 @@ class LoopVectorizationPlanner {
/// Profitable vector factors.
SmallVector<VectorizationFactor, 8> ProfitableVFs;
+ SmallVector<PartialReductionChain> PartialReductionChains;
----------------
SamTebbs33 wrote:
It looks like this is cleaner than passing it between functions with parameters. And the functions that use it are all part of `LoopVectorizationPlanner` anyway.
https://github.com/llvm/llvm-project/pull/92418
More information about the llvm-commits
mailing list