[PATCH] D140599: AMDGPU: Promote array alloca if used by memmove/memcpy
Ruiling, Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 06:39:56 PST 2023
ruiling marked 2 inline comments as done.
ruiling added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/promote-alloca-array-aggregate.ll:307
+}
+
+declare void @llvm.memcpy.p5i8.p5i8.i32(ptr addrspace(5) nocapture writeonly, ptr addrspace(5) nocapture readonly, i32, i1 immarg)
----------------
arsenm wrote:
> Another edge case to maybe test is the identity copy of the full alloca to itself
I have added a case for it, but would not bother to optimize for it as such code pattern are trivially optimized away early.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140599/new/
https://reviews.llvm.org/D140599
More information about the llvm-commits
mailing list