[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (NFCI) (PR #113903)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 07:10:23 PST 2024
================
@@ -9419,9 +9389,81 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
if (CM.blockNeedsPredicationForAnyReason(BB))
CondOp = RecipeBuilder.getBlockInMask(BB);
- VPReductionRecipe *RedRecipe =
- new VPReductionRecipe(RdxDesc, CurrentLinkI, PreviousLink, VecOp,
- CondOp, CM.useOrderedReductions(RdxDesc));
+ auto TryToMatchMulAcc = [&]() -> VPReductionRecipe * {
----------------
fhahn wrote:
adjustRecipesForReductions is already quite big, probably better to move this out to a separate function to avoid It getting even bigger + document what it is doing.
https://github.com/llvm/llvm-project/pull/113903
More information about the llvm-commits
mailing list