[llvm] [LoopVectorizer] Add support for partial reductions (PR #92418)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 17 03:01:28 PST 2024
================
@@ -7575,6 +7575,11 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
}
continue;
}
+ // A partial reduction is very differently costed compared to its
+ // underlying add instruction that the legacy cost model sees, so consider
+ // it an additional simplification.
+ if (dyn_cast<VPPartialReductionRecipe>(&R))
+ continue;
----------------
SamTebbs33 wrote:
Yeah that's better, thank you.
https://github.com/llvm/llvm-project/pull/92418
More information about the llvm-commits
mailing list