File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1033,8 +1033,11 @@ void VPlan::execute(VPTransformState *State) {
1033
1033
State->CFG .DTU .applyUpdates (
1034
1034
{{DominatorTree::Delete, ScalarPh, ScalarPh->getSingleSuccessor ()}});
1035
1035
1036
- // Generate code in the loop pre-header and body.
1037
- for (VPBlockBase *Block : vp_depth_first_shallow (Entry))
1036
+ ReversePostOrderTraversal<VPBlockShallowTraversalWrapper<VPBlockBase *>> RPOT (
1037
+ Entry);
1038
+ // Generate code for the VPlan, in parts of the vector skeleton, loop body and
1039
+ // successor blocks including the middle, exit and scalar preheader blocks.
1040
+ for (VPBlockBase *Block : RPOT)
1038
1041
Block->execute (State);
1039
1042
1040
1043
VPBasicBlock *LatchVPBB = getVectorLoopRegion ()->getExitingBasicBlock ();
You can’t perform that action at this time.
0 commit comments