]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcn: Fix CDNA3 atomics' buffer invalidation
authorTobias Burnus <tburnus@baylibre.com>
Mon, 28 Jul 2025 13:45:06 +0000 (15:45 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Mon, 28 Jul 2025 13:45:06 +0000 (15:45 +0200)
commit0cafa22fc1ca6dcd8cc40e2adfdd8deac92fccc1
tree2f05a4d40925979b73a3651dc058316affe8cc0c
parentfda0a873df12a46ff4cdc89229b0de6179b465c1
gcn: Fix CDNA3 atomics' buffer invalidation

For device (agent) scope atomics - as needed when there is more than one teams,
a buffer_wbl2 followed by s_waitcnt is required. When doing the initial porting,
the pre-atomic instruction got accidentally replaced by buffer_inv sc1, which is
not quite the right instruction.

gcc/ChangeLog:

* config/gcn/gcn.md (atomic_load, atomic_store, atomic_exchange):
Fix CDNA3 L2 cache write-back before atomic instructions.
gcc/config/gcn/gcn.md