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

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 31 03:29:33 PST 2024


================
@@ -8915,7 +8799,7 @@ static void addScalarResumePhis(VPRecipeBuilder &Builder, VPlan &Plan) {
     if (auto *WideIVR = dyn_cast<VPWidenInductionRecipe>(VectorPhiR)) {
       if (VPValue *ResumePhi = addResumePhiRecipeForInduction(
               WideIVR, VectorPHBuilder, ScalarPHBuilder, TypeInfo,
-              &Plan.getVectorTripCount())) {
+              &Plan.getVectorTripCount(), EndValues)) {
----------------
ayalz wrote:

```suggestion
              &Plan.getVectorTripCount())) {
        EndValues[WideIVR] = first operand of ResumePhi
```
?

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


More information about the llvm-commits mailing list