Skip to content

Commit c9b63ef

Browse files
committed
[Flang][OpenMP] Add workdistribute lower pass to pipeline
1 parent 085062f commit c9b63ef

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
@@ -278,8 +278,10 @@ void createHLFIRToFIRPassPipeline(mlir::PassManager &pm, bool enableOpenMP,
278278
addNestedPassToAllTopLevelOperations<PassConstructor>(
279279
pm, hlfir::createInlineHLFIRAssign);
280280
pm.addPass(hlfir::createConvertHLFIRtoFIR());
281-
if (enableOpenMP)
281+
if (enableOpenMP) {
282282
pm.addPass(flangomp::createLowerWorkshare());
283+
pm.addPass(flangomp::createLowerWorkdistribute());
284+
}
283285
}
284286

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

0 commit comments

Comments
 (0)