[llvm] [VPlan] Create resume phis in scalar preheader early. (NFC) (PR #166099)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 21 08:30:12 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
----------------
lukel97 wrote:

```suggestion
  /// for first-order recurrences, reductions and inductions. End values for
```

https://github.com/llvm/llvm-project/pull/166099


More information about the llvm-commits mailing list