Skip to content

Commit 1f72ed3

Browse files
Adjust how we iterate over vplan blocks
1 parent f32849f commit 1f72ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4547,8 +4547,8 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
45474547
}
45484548

45494549
static bool hasReplicatorRegion(VPlan &Plan) {
4550-
return any_of(VPBlockUtils::blocksOnly<VPRegionBlock>(
4551-
vp_depth_first_deep(Plan.getEntry())),
4550+
return any_of(VPBlockUtils::blocksOnly<VPRegionBlock>(vp_depth_first_shallow(
4551+
Plan.getVectorLoopRegion()->getEntry())),
45524552
[](auto *VPRB) { return VPRB->isReplicator(); });
45534553
}
45544554

0 commit comments

Comments
 (0)