Skip to content

Commit b1115f8

Browse files
committed
[LV] Use LatchVPBB directly instead of going through region (NFC).
Split off from D158333.
1 parent 0dfcfb5 commit b1115f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8918,8 +8918,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
89188918
// ---------------------------------------------------------------------------
89198919

89208920
// Adjust the recipes for any inloop reductions.
8921-
adjustRecipesForReductions(cast<VPBasicBlock>(TopRegion->getExiting()), Plan,
8922-
RecipeBuilder, Range.Start);
8921+
adjustRecipesForReductions(LatchVPBB, Plan, RecipeBuilder, Range.Start);
89238922

89248923
// Interleave memory: for each Interleave Group we marked earlier as relevant
89258924
// for this VPlan, replace the Recipes widening its memory instructions with a

0 commit comments

Comments
 (0)