[flang-commits] [flang] [flang][OpenMP] Allocate `allocatable` init temps on the stack for GPUs (PR #164761)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Fri Oct 24 11:41:00 PDT 2025
mjklemm wrote:
As per OpenMP spec, one is not allowed to alter the allocation status of the ALLOCATABLE entity that is used in a `reduction` clause. If that happens, the code is non-conforming. So, I do not think it will be harmful if the ALLOCATABLE in a `reduction` are privatized using `alloca`.
https://github.com/llvm/llvm-project/pull/164761
More information about the flang-commits
mailing list