[flang-commits] [flang] [flang][OpenMP] Allocate `allocatable` init temps on the stack for GPUs (PR #164761)

via flang-commits flang-commits at lists.llvm.org
Thu Oct 23 05:05:45 PDT 2025


jeanPerier wrote:

Is it legal to reallocate/deallocate the private ALLOCATABLE on the device?
If so, I am not sure this would work after your patch.

Maybe the StackArrays could be extended to deal with scalar allocmem to alloca (assuming you only care about this under optimizations). Although it would likely not be able to deal with this because of the branching logic around the allocation/deallocation.

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


More information about the flang-commits mailing list