[llvm] [VPlan] Detect and create partial reductions in VPlan. (NFCI) (PR #167851)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 19 05:06:49 PST 2026
================
@@ -8601,11 +8356,13 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
*Plan))
return nullptr;
- // Transform recipes to abstract recipes if it is legal and beneficial and
- // clamp the range for better cost estimation.
+ // Create partial reduction recipes for scaled reductions and transform
+ // recipes to abstract recipes if it is legal and beneficial and clamp the
+ // range for better cost estimation.
// TODO: Enable following transform when the EVL-version of extended-reduction
// and mulacc-reduction are implemented.
if (!CM.foldTailWithEVL()) {
+ VPlanTransforms::createPartialReductions(*Plan, Range, &TTI, CM.CostKind);
----------------
fhahn wrote:
No, updated, thanks
https://github.com/llvm/llvm-project/pull/167851
More information about the llvm-commits
mailing list