[flang-commits] [flang] [flang][OpenMP] Hoist reduction info from nested `loop` ops to parent `teams` ops (PR #132003)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Tue Mar 25 04:51:08 PDT 2025


ergawy wrote:

> I do not see how we could possibly attach the reduction to the `teams` directive.

Not saying we should. I am just saying is allowed by the spec (or at least by flang atm) and therefore we should handle it somehow. Maybe one option would be to just drop the reductions in this case and serialize the loop! But I think we should find a solution for this case.

The 2nd scenario is handled in https://github.com/llvm/llvm-project/pull/132920.

https://github.com/llvm/llvm-project/pull/132003


More information about the flang-commits mailing list