[PATCH] D126009: [AMDGPU] Enforce alignment of image vaddr on gfx90a

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 19 13:04:22 PDT 2022


rampitec created this revision.
rampitec added a reviewer: bcahoon.
Herald added subscribers: kosarev, jsilvanus, hsmhsm, foad, wenlei, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: All.
rampitec requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Even though single address image instructions only use a single VGPR
HW accesses 4 or 5 which creates alignment requirement.

Fixes: SWDEV-316648


https://reviews.llvm.org/D126009

Files:
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/lib/Target/AMDGPU/MIMGInstructions.td
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
  llvm/lib/Target/AMDGPU/SIInstrInfo.h
  llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.image.atomic.dim.ll
  llvm/test/CodeGen/AMDGPU/alloc-aligned-tuples-gfx90a.mir
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.atomic.dim.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.dim.gfx90a.ll
  llvm/test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.dim.gfx90a.ll
  llvm/test/CodeGen/AMDGPU/verify-image-vaddr-align.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126009.430782.patch
Type: text/x-patch
Size: 85729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220519/f48d2a89/attachment-0001.bin>


More information about the llvm-commits mailing list