llvm-project
d46af3a7 - [AMDGPU] Fix duplicate s_wait_asynccnt on gfx12-plus (#190906)

Commit
3 days ago
[AMDGPU] Fix duplicate s_wait_asynccnt on gfx12-plus (#190906) S_WAIT_ASYNCCNT was missing from counterTypeForInstr(), so isWaitInstr() did not recognize it as a wait instruction. On the fixpoint algorithm's second pass over a loop body, the already-inserted S_WAIT_ASYNCCNT was treated as a normal instruction, causing WAIT_ASYNCMARK to be re-processed and a duplicate S_WAIT_ASYNCCNT to be emitted. Assisted-By: Claude Opus 4.6
Author
Parents
Loading