llvm-project
87d88727 - [flang][OpenMP] Do not emit barrier after SECTIONS with LASTPRIVATE and NOWAIT (#216018)

Commit
4 days ago
[flang][OpenMP] Do not emit barrier after SECTIONS with LASTPRIVATE and NOWAIT (#216018) Fixes #192907 Flang inserted an explicit omp.barrier after SECTIONS when both lastprivate and nowait were present, which serialized all threads at the end of the construct and prevented nowait from taking effect. Limit the barrier to lastprivate(conditional:) cases, where reduction results must be finalized before the post-sections copy-back. Regular lastprivate + nowait now matches wsloop lowering behavior.
Author
Parents
Loading