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 19, 2024
1 parent 638ffd4 commit a9f4b77
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 a9f4b77

Please sign in to comment.