Skip to content

Commit 5098471

Browse files
Don't reverse traversal list + rebase
1 parent a47195c commit 5098471

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
@@ -1412,9 +1412,8 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
14121412
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT(
14131413
Plan.getEntry());
14141414
DenseSet<VPValue *> HeaderMasks = collectAllHeaderMasks(Plan);
1415-
for (VPBasicBlock *VPBB :
1416-
reverse(VPBlockUtils::blocksOnly<VPBasicBlock>(RPOT))) {
1417-
for (VPRecipeBase &R : make_early_inc_range(reverse(*VPBB))) {
1415+
for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(RPOT)) {
1416+
for (VPRecipeBase &R : *VPBB) {
14181417
TypeSwitch<VPRecipeBase *>(&R)
14191418
.Case<VPWidenLoadRecipe>([&](VPWidenLoadRecipe *L) {
14201419
VPValue *NewMask =

0 commit comments

Comments
 (0)