[PATCH] D96743: [AMDGPU] Correct rmw atomics s_waitcnt generation
Tony Tye via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 15 19:27:45 PST 2021
t-tye created this revision.
t-tye added reviewers: kzhuravl, scott.linder, b-sumner, rampitec.
Herald added subscribers: kerbowa, jfb, hiraditya, tpr, dstuttard, yaxunl, nhaehnle, jvesely, arsenm.
t-tye requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
The AMD GPU SIMemoryLegalizer was using the ordering address space
rather than the instruction address space when determining the
s_waitcnt to generate to ensure that a read-modify-write atomic has
completed. This resulted in additional unnecessary counters being
waited on.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96743
Files:
llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/mubuf-global.ll
llvm/test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll
llvm/test/CodeGen/AMDGPU/atomicrmw-nand.ll
llvm/test/CodeGen/AMDGPU/global-saddr-atomics.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-global-agent.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-global-system.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-global-workgroup.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-local-agent.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-local-system.ll
llvm/test/CodeGen/AMDGPU/memory-legalizer-local-workgroup.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96743.323866.patch
Type: text/x-patch
Size: 234024 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210216/ba5dcaf8/attachment-0001.bin>
More information about the llvm-commits
mailing list