[PATCH] D96421: [AMDGPU] Better selection of base offset when merging DS reads/writes

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 07:25:39 PST 2021


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

When merging a pair of DS reads or writes needs to materialize the base
offset in a vgpr, choose a value that is aligned to as high a power of
two as possible. This maximises the chance that different pairs can use
the same base offset, in which case the base offset registers can be
commoned up by MachineCSE.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96421

Files:
  llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
  llvm/test/CodeGen/AMDGPU/ds-combine-large-stride.ll
  llvm/test/CodeGen/AMDGPU/fence-lds-read2-write2.ll
  llvm/test/CodeGen/AMDGPU/merge-load-store-vreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96421.322680.patch
Type: text/x-patch
Size: 18209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210210/858fb960/attachment.bin>


More information about the llvm-commits mailing list