[PATCH] D146225: [AMDGPU] Handle memset users in PromoteAlloca
Pierre van Houtryve via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 27 05:43:35 PDT 2023
Pierre-vh added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp:637
+ // no-op, but it's better to be safe.
+ MSI->setOperand(2, Builder.getInt64(DL.getTypeStoreSize(VectorTy)));
} else {
----------------
arsenm wrote:
> I don't see how this could differ with the current code
I think t's better to be safe especially since this is (I think) cheap to do, but I could replace it with an assertion if you prefer.
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