[llvm] [VPlan] Create header phis once, after constructing VPlan0 (NFC). (PR #168291)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 14 09:29:34 PST 2025
================
@@ -8357,6 +8265,9 @@ VPRecipeBuilder::tryToCreatePartialReduction(VPInstruction *Reduction,
cast<VPReductionRecipe>(BinOpRecipe)->isPartialReduction()))
std::swap(BinOp, Accumulator);
+ if (auto *RedPhiR = dyn_cast<VPReductionPHIRecipe>(Accumulator))
+ RedPhiR->setVFScaleFactor(ScaleFactor);
----------------
fhahn wrote:
Yep it could be done separately, but only needed as part of this change
https://github.com/llvm/llvm-project/pull/168291
More information about the llvm-commits
mailing list