Skip to content

Commit

Permalink
[VPlan] Only consider recipes in loop region in planContainsSimp. (NFCI)
Browse files Browse the repository at this point in the history
Limit checks in planContainsAdditionalSimplifications to recipes in the
vector loop region.

Preparation for llvm#107894.
  • Loading branch information
fhahn committed Sep 19, 2024
1 parent 42eb19a commit 96ba9d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7286,7 +7286,7 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
};

DenseSet<Instruction *> SeenInstrs;
auto Iter = vp_depth_first_deep(Plan.getEntry());
auto Iter = vp_depth_first_deep(Plan.getVectorLoopRegion()->getEntry());
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(Iter)) {
for (VPRecipeBase &R : *VPBB) {
if (auto *IR = dyn_cast<VPInterleaveRecipe>(&R)) {
Expand Down

0 comments on commit 96ba9d3

Please sign in to comment.