[llvm] [VPlan] Support VPWidenPointerInductionRecipes with EVL tail folding (PR #152110)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 6 02:48:34 PDT 2025


================
@@ -2803,13 +2808,12 @@ static void expandVPWidenPointerInduction(VPWidenPointerInductionRecipe *R,
   R->replaceAllUsesWith(PtrAdd);
 
   // Create the backedge value for the scalar pointer phi.
-  Builder.setInsertPoint(R->getParent(), R->getParent()->getFirstNonPhi());
+  VPBasicBlock *ExitingBB = Plan->getVectorLoopRegion()->getExitingBasicBlock();
+  Builder.setInsertPoint(ExitingBB, ExitingBB->getTerminator()->getIterator());
----------------
fhahn wrote:

How is this related to the EVL change?

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


More information about the llvm-commits mailing list