OpenMPOpt: Fix using wrong address space for alloca
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sun, 1 Jan 2023 19:27:15 +0000 (14:27 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 3 Jan 2023 21:26:37 +0000 (16:26 -0500)
commitc3054aeb5a3ba7778b1296722cfb90b494819b60
tree532720e9a74361d292670e476a9319172c7e5376
parent3ffda42e50703b5402966eba3f30cd1dcad4b022
OpenMPOpt: Fix using wrong address space for alloca

Using the function's address space makes no sense. Copied from the
existing test, with more addrspace variation. Could just replace the
existing one with this version if it's redundant.
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/test/Transforms/OpenMP/hide_mem_transfer_latency.ll
llvm/test/Transforms/OpenMP/values_in_offload_arrays.alloca.ll [new file with mode: 0644]