[llvm] [VPlan] Update final IV exit value via VPlan. (PR #112147)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 12:05:02 PST 2025


================
@@ -9675,7 +9498,9 @@ VPlanPtr LoopVectorizationPlanner::buildVPlan(VFRange &Range) {
     auto *HeaderR = cast<VPHeaderPHIRecipe>(&R);
     RecipeBuilder.setRecipe(HeaderR->getUnderlyingInstr(), HeaderR);
   }
-  addScalarResumePhis(RecipeBuilder, *Plan);
+  DenseMap<VPValue *, VPValue *> IVEndValues;
+  // IVEndValues are not used yet in the native path.
----------------
ayalz wrote:

nit:
```suggestion
  // TODO: IVEndValues are not used yet in the native path, to optimize exit values.
```

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


More information about the llvm-commits mailing list