[PATCH] D102401: [AMDGPU] Allocate LDS globals in sorted order of their size and alignment.
Mahesha S via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 07:11:50 PDT 2021
hsmhsm created this revision.
hsmhsm added reviewers: rampitec, arsenm, JonChesterfield, t-tye, b-sumner, foad.
Herald added subscribers: kerbowa, hiraditya, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
hsmhsm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
At the start of ISel lowering of kernel function K:
[1] Collect all the LDS globals, say, LDSSet, which are used within the kernel K.
[2] Fix the natural alignment of all the LDS globals from LDSSet.
[3] Sort LDS globals from LDSSet first by their size and then by their alignment order.
[4] Allocate memory for LDS globals from LDSSet in the above sorted order.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D102401
Files:
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.h
llvm/test/CodeGen/AMDGPU/GlobalISel/lds-global-value.ll
llvm/test/CodeGen/AMDGPU/lds-alignment.ll
llvm/test/CodeGen/AMDGPU/local-memory.amdgcn.ll
llvm/test/CodeGen/AMDGPU/promote-alloca-padding-size-estimate.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102401.345130.patch
Type: text/x-patch
Size: 12605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210513/422f0074/attachment.bin>
More information about the llvm-commits
mailing list