[PATCH] D82496: [amdgpu] Add codegen support for HIP dynamic shared memory.
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 13:43:16 PDT 2020
hliao marked 4 inline comments as done.
hliao added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp:2258
+ Type *Ty = GV->getValueType();
+ if (B.getDataLayout().getTypeAllocSize(Ty).isZero()) {
+ // Adjust alignment for that dynamic shared memory array.
----------------
arsenm wrote:
> Should get global's alignment, not just the type
Good catch, fixed in the latest revision.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82496/new/
https://reviews.llvm.org/D82496
More information about the llvm-commits
mailing list