Skip to content

Commit 92c4480

Browse files
committed
[Flang][OpenMP] Add workdistribute lower pass to pipeline
1 parent 3375aee commit 92c4480

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Optimizer/Passes/Pipelines.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,10 @@ void createHLFIRToFIRPassPipeline(mlir::PassManager &pm, bool enableOpenMP,
276276
addNestedPassToAllTopLevelOperations<PassConstructor>(
277277
pm, hlfir::createInlineHLFIRAssign);
278278
pm.addPass(hlfir::createConvertHLFIRtoFIR());
279-
if (enableOpenMP)
279+
if (enableOpenMP) {
280280
pm.addPass(flangomp::createLowerWorkshare());
281+
pm.addPass(flangomp::createLowerWorkdistribute());
282+
}
281283
}
282284

283285
/// Create a pass pipeline for handling certain OpenMP transformations needed

0 commit comments

Comments
 (0)