Skip to content

Commit 96ba9d3

Browse files
committed
[VPlan] Only consider recipes in loop region in planContainsSimp. (NFCI)
Limit checks in planContainsAdditionalSimplifications to recipes in the vector loop region. Preparation for #107894.
1 parent 42eb19a commit 96ba9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7286,7 +7286,7 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
72867286
};
72877287

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

0 commit comments

Comments
 (0)