AMDGPU: Promote array alloca if used by memmove/memcpy
authorRuiling Song <ruiling.song@amd.com>
Tue, 20 Dec 2022 00:58:46 +0000 (08:58 +0800)
committerRuiling Song <ruiling.song@amd.com>
Wed, 11 Jan 2023 01:59:35 +0000 (09:59 +0800)
commit5d0ff923c3a7cc6c47b6010bbaf68592124110a5
treea1e2b2ee293a42ddc3f14a29c3afc9302300f8b0
parentc0b475bd5ec9f4e4fefbb664ced4259ef17547b9
AMDGPU: Promote array alloca if used by memmove/memcpy

Reviewed by: arsenm

Differential Revision: https://reviews.llvm.org/D140599
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/test/CodeGen/AMDGPU/promote-alloca-array-aggregate.ll