File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1031,7 +1031,7 @@ void VPlan::execute(VPTransformState *State) {
1031
1031
1032
1032
// We do not attempt to preserve DT for outer loop vectorization currently.
1033
1033
if (!EnableVPlanNativePath)
1034
- updateDominatorTree (State->DT , VectorPreHeaderBB , VectorLatchBB,
1034
+ updateDominatorTree (State->DT , VectorHeaderBB , VectorLatchBB,
1035
1035
L->getExitBlock ());
1036
1036
}
1037
1037
@@ -1071,11 +1071,9 @@ LLVM_DUMP_METHOD
1071
1071
void VPlan::dump () const { print (dbgs ()); }
1072
1072
#endif
1073
1073
1074
- void VPlan::updateDominatorTree (DominatorTree *DT, BasicBlock *LoopPreHeaderBB ,
1074
+ void VPlan::updateDominatorTree (DominatorTree *DT, BasicBlock *LoopHeaderBB ,
1075
1075
BasicBlock *LoopLatchBB,
1076
1076
BasicBlock *LoopExitBB) {
1077
- BasicBlock *LoopHeaderBB = LoopPreHeaderBB->getSingleSuccessor ();
1078
- assert (LoopHeaderBB && " Loop preheader does not have a single successor." );
1079
1077
// The vector body may be more than a single basic-block by this point.
1080
1078
// Update the dominator tree information inside the vector body by propagating
1081
1079
// it from header to latch, expecting only triangular control-flow, if any.
You can’t perform that action at this time.
0 commit comments