[llvm] [VPlan] Compute induction end values in VPlan. (PR #112145)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 23 05:42:13 PST 2024


================
@@ -8955,24 +8855,79 @@ static void addCanonicalIVRecipes(VPlan &Plan, Type *IdxTy, bool HasNUW,
                        {CanonicalIVIncrement, &Plan.getVectorTripCount()}, DL);
 }
 
-/// Create resume phis in the scalar preheader for first-order recurrences and
-/// reductions and update the VPIRInstructions wrapping the original phis in the
-/// scalar header.
+/// Create and return a ResumePhi for \p PhiR, if it is wide induction recipe.
----------------
ayalz wrote:

```suggestion
/// Create and return a ResumePhi for \p WideIV, unless it is truncated.
```

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


More information about the llvm-commits mailing list