[flang-commits] [flang] [flang][OpenMP] Move reductions from `loop` to `teams` when `loop` is mapped to `distribute` (PR #132920)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Fri Mar 28 04:22:36 PDT 2025
================
@@ -358,3 +358,40 @@ subroutine multi_block_teams
end select
!$omp end target teams
end subroutine
+
+
+! Verifies that reductions are hoisted to the parent `teams` directive and removed
+! from the `loop` dreictive when `loop` is mapped to `distribute`.
----------------
mjklemm wrote:
```suggestion
! from the `loop` directive when `loop` is mapped to `distribute`.
```
https://github.com/llvm/llvm-project/pull/132920
More information about the flang-commits
mailing list