Skip to content

Commit c610b3b

Browse files
Fix c059147 after reapplying it.
Reapplication of c059147 shows up as a693b9d which is a revert of a revert.
1 parent a693b9d commit c610b3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,7 +3092,7 @@ static mlir::omp::DistributeOp genCompositeDistributeSimd(
30923092
/*shouldCollectPreDeterminedSymbols=*/true,
30933093
/*useDelayedPrivatization=*/false, symTable);
30943094
dsp.processStep1();
3095-
3095+
dsp.processStep2();
30963096
// Pass the innermost leaf construct's clauses because that's where COLLAPSE
30973097
// is placed by construct decomposition.
30983098
mlir::omp::LoopNestOperands loopNestClauseOps;
@@ -3146,12 +3146,14 @@ static mlir::omp::WsloopOp genCompositeDoSimd(
31463146
converter, semaCtx, doItem->clauses, eval,
31473147
/*shouldCollectPreDeterminedSymbols=*/false,
31483148
/*useDelayedPrivatization=*/true, symTable);
3149-
wsloopItemDSP.processStep1(&wsloopClauseOps);
3149+
wsloopItemDSP.processStep1();
3150+
wsloopItemDSP.processStep2(&wsloopClauseOps);
31503151

31513152
DataSharingProcessor simdItemDSP(converter, semaCtx, simdItem->clauses, eval,
31523153
/*shouldCollectPreDeterminedSymbols=*/true,
31533154
/*useDelayedPrivatization=*/true, symTable);
3154-
simdItemDSP.processStep1(&simdClauseOps);
3155+
simdItemDSP.processStep1();
3156+
simdItemDSP.processStep2(&simdClauseOps);
31553157

31563158
// Pass the innermost leaf construct's clauses because that's where COLLAPSE
31573159
// is placed by construct decomposition.

0 commit comments

Comments
 (0)