Skip to content

Commit 4776c9c

Browse files
committed
Only shallow traverse vector loop region
1 parent ab2e0d9 commit 4776c9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,9 +1028,8 @@ void VPlanTransforms::simplifyRecipes(VPlan &Plan, Type &CanonicalIVTy) {
10281028
/// to make sure the masks are simplified.
10291029
static void simplifyBlends(VPlan &Plan) {
10301030
using namespace llvm::VPlanPatternMatch;
1031-
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT(
1032-
Plan.getEntry());
1033-
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(RPOT)) {
1031+
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
1032+
vp_depth_first_shallow(Plan.getVectorLoopRegion()->getEntry()))) {
10341033
for (VPRecipeBase &R : make_early_inc_range(*VPBB)) {
10351034
auto *Blend = dyn_cast<VPBlendRecipe>(&R);
10361035
if (!Blend)

0 commit comments

Comments
 (0)