[PATCH] D123171: AMDGPU: Handle private atomics

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 17:36:07 PDT 2022


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

Use new NotAtomic expansion to turn these into the equivalent
non-atomic operations. Independent lanes cannot access the private
memory of other lanes, so there's no possibility for synchronization.

      

These don't really appear directly in user code, but
InferAddressSpaces can make these appear after optimizations.

      

Fixes issues 54693 and 54274.


https://reviews.llvm.org/D123171

Files:
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.h
  llvm/test/CodeGen/AMDGPU/private-memory-atomics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123171.420674.patch
Type: text/x-patch
Size: 28133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/22a91f68/attachment.bin>


More information about the llvm-commits mailing list