Skip to content

Commit

Permalink
Only emit unordered loops as omp loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanradanov committed Aug 22, 2024
1 parent 2d741e5 commit f2c2d5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flang/lib/Optimizer/Builder/HLFIRTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ hlfir::LoopNest hlfir::genLoopNest(mlir::Location loc,
fir::FirOpBuilder &builder,
mlir::ValueRange extents, bool isUnordered,
bool emitWorkshareLoop) {
emitWorkshareLoop = emitWorkshareLoop && isUnordered;
hlfir::LoopNest loopNest;
assert(!extents.empty() && "must have at least one extent");
mlir::OpBuilder::InsertionGuard guard(builder);
Expand Down

0 comments on commit f2c2d5c

Please sign in to comment.