[PATCH] D103671: [AMDGPU] Increase alignment of LDS globals if necessary before LDS lowering.

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 00:25:14 PDT 2021


hsmhsm created this revision.
hsmhsm added reviewers: rampitec, arsenm, JonChesterfield.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
hsmhsm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Before packing LDS globals into a sorted structure, make sure that
their alignment is properly updated based on their size. This will make
sure that the members of sorted structure are properly aligned, and
hence it will further reduce the probability of unaligned LDS access.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103671

Files:
  llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/lds-global-value.ll
  llvm/test/CodeGen/AMDGPU/ds_read2.ll
  llvm/test/CodeGen/AMDGPU/ds_read2_offset_order.ll
  llvm/test/CodeGen/AMDGPU/ds_write2.ll
  llvm/test/CodeGen/AMDGPU/lds-alignment.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-globals.ll
  llvm/test/CodeGen/AMDGPU/update-lds-alignment.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103671.349775.patch
Type: text/x-patch
Size: 26380 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/d7bbbe27/attachment-0001.bin>


More information about the llvm-commits mailing list