[PATCH] D103261: [AMDGPU] Fix natural alignment of LDS globals during LDS lowering.

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 09:02:10 PDT 2021


hsmhsm created this revision.
hsmhsm added reviewers: JonChesterfield, arsenm, b-sumner, t-tye, rampitec, ronlieb, 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.

Before packing LDS globals into a sorted structure, make sure that
their natural alignment is properly fixed based on their size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103261

Files:
  llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.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/ds_read2.ll
  llvm/test/CodeGen/AMDGPU/ds_read2_offset_order.ll
  llvm/test/CodeGen/AMDGPU/ds_write2.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment1.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment2.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment3.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment4.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment5.ll
  llvm/test/CodeGen/AMDGPU/fix-lds-alignment6.ll
  llvm/test/CodeGen/AMDGPU/lds-alignment.ll
  llvm/test/CodeGen/AMDGPU/promote-alloca-globals.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103261.348292.patch
Type: text/x-patch
Size: 27812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/51156795/attachment-0001.bin>


More information about the llvm-commits mailing list