[llvm] [VPlan] Compute induction end values in VPlan. (PR #112145)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 15:27:14 PST 2024
================
@@ -9481,7 +9445,9 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
VPlanTransforms::handleUncountableEarlyExit(
*Plan, *PSE.getSE(), OrigLoop, UncountableExitingBlock, RecipeBuilder);
}
- addScalarResumePhis(RecipeBuilder, *Plan);
+ addScalarResumePhis(*Plan, [&RecipeBuilder](PHINode *P) {
----------------
ayalz wrote:
Simpler to continue pass RecipeBuilder into addScalarResumePhis()? The latter is now also being called by native buildVPlan(), to support induction resumes (right?), so it would need to construct a RecipeBuilder and have it record the mapping from header phis to their recipes.
https://github.com/llvm/llvm-project/pull/112145
More information about the llvm-commits
mailing list