Skip to content

Commit

Permalink
[LV] Use LatchVPBB directly instead of going through region (NFC).
Browse files Browse the repository at this point in the history
Split off from D158333.
  • Loading branch information
fhahn committed Oct 13, 2023
1 parent 0dfcfb5 commit b1115f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8918,8 +8918,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
// ---------------------------------------------------------------------------

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

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

0 comments on commit b1115f8

Please sign in to comment.