[PATCH] D146225: [AMDGPU] Handle memset users in PromoteAlloca
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 11:59:49 PDT 2023
jdoerfert added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/promote-alloca-memset.ll:31
+ store i64 %val, ptr addrspace(5) %stack
+ ret void
+}
----------------
the store of val is dead and SROA drops it. What is the point?
Fixing the test and I see reasonable SROA output, what is missing? https://godbolt.org/z/Pacce89fY
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146225/new/
https://reviews.llvm.org/D146225
More information about the llvm-commits
mailing list