]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Adjust GFX10/GFX11 cache coherency
authorAndrew Stubbs <ams@baylibre.com>
Wed, 6 Mar 2024 15:54:46 +0000 (15:54 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Fri, 22 Mar 2024 15:54:33 +0000 (15:54 +0000)
commite194503b6f2cf5f1b819f4a8af9d16311a07e4f5
treec64d192a9dc168728cb1c9b04c402c1757aef3ff
parent6dedafe166cc02ae87b6a0699ad61ce3ffc46803
amdgcn: Adjust GFX10/GFX11 cache coherency

The RDNA devices have different cache architectures to the CDNA devices, and
the differences go deeper than just the assembler mnemonics.

I believe this patch is correct according to the documentation in the LLVM
AMDGPU user guide (the ISA manual is less instructive), but I hadn't observed
any real problems before (or after).

gcc/ChangeLog:

* config/gcn/gcn.md (*memory_barrier): Split into RDNA and !RDNA.
(atomic_load<mode>): Adjust RDNA cache settings.
(atomic_store<mode>): Likewise.
(atomic_exchange<mode>): Likewise.
gcc/config/gcn/gcn.md