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) {
10331033 State->CFG .DTU .applyUpdates (
10341034 {{DominatorTree::Delete, ScalarPh, ScalarPh->getSingleSuccessor ()}});
10351035
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)
10381041 Block->execute (State);
10391042
10401043 VPBasicBlock *LatchVPBB = getVectorLoopRegion ()->getExitingBasicBlock ();
You can’t perform that action at this time.
0 commit comments