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 6, 2024
1 parent a47ea24 commit f1b9e86
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 f1b9e86

Please sign in to comment.