[llvm] [VPlan] Create resume phis in scalar preheader early. (NFC) (PR #166099)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 13:35:01 PST 2025
================
@@ -372,12 +372,12 @@ struct VPlanTransforms {
addBranchWeightToMiddleTerminator(VPlan &Plan, ElementCount VF,
std::optional<unsigned> VScaleForTuning);
- /// Create resume phis in the scalar preheader for first-order recurrences,
- /// reductions and inductions, and update the VPIRInstructions wrapping the
- /// original phis in the scalar header. End values for inductions are added to
- /// \p IVEndValues.
- static void addScalarResumePhis(VPlan &Plan, VPRecipeBuilder &Builder,
- DenseMap<VPValue *, VPValue *> &IVEndValues);
+ /// Update the resume phis in the scalar preheader after creating wide recipes
+ /// for first-order recurrences, reductions and inductions, End values for
----------------
fhahn wrote:
Fixed, thanks!
https://github.com/llvm/llvm-project/pull/166099
More information about the llvm-commits
mailing list