[all-commits] [llvm/llvm-project] d46af3: [AMDGPU] Fix duplicate s_wait_asynccnt on gfx12-pl...

Sameer Sahasrabuddhe via All-commits all-commits at lists.llvm.org
Wed Apr 8 02:00:07 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d46af3a78dea1dfb0a6f319e7abbcd6b6e2df64e
      https://github.com/llvm/llvm-project/commit/d46af3a78dea1dfb0a6f319e7abbcd6b6e2df64e
  Author: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
  Date:   2026-04-08 (Wed, 08 Apr 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/test/CodeGen/AMDGPU/asyncmark-gfx12plus.ll

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list