[flang-commits] [flang] [flang][OpenMP] Clone reduction info from nested `loop` ops to parent `teams` ops (PR #132003)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Thu Mar 20 01:36:48 PDT 2025
mjklemm wrote:
The semantics for `teams loop reduction(op:var)` clearly needs to be that the `reduction` clause not only affects the `loop` construct, but that it performs a reduction operation across the parallel regions as well as the league of teams. So, hoisting the `reduction` operation from `omp.loop` to `omp.teams` makes perfect sense. I wonder, though, if this should be done when the MLIR code is first generated and not later during an MLIR pass.
https://github.com/llvm/llvm-project/pull/132003
More information about the flang-commits
mailing list