[all-commits] [llvm/llvm-project] 6e27c8: [AMDGPU][SIInsertWaitcnts] Track SCC. Insert KM_CN...

Petar Avramovic via All-commits all-commits at lists.llvm.org
Wed Sep 17 02:07:18 PDT 2025


  Branch: refs/heads/users/petar-avramovic/scc-kmcnt
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e27c8e3f98db5c087603e50a037403d9600a6cf
      https://github.com/llvm/llvm-project/commit/6e27c8e3f98db5c087603e50a037403d9600a6cf
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2025-09-17 (Wed, 17 Sep 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.signal.isfirst.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.signal.isfirst.mir
    M llvm/test/CodeGen/AMDGPU/s-barrier.ll
    A llvm/test/CodeGen/AMDGPU/waitcnt-kmcnt-scc-different-block.mir

  Log Message:
  -----------
  [AMDGPU][SIInsertWaitcnts] Track SCC. Insert KM_CNT waits for SCC writes.

Add new event SCC_WRITE for s_barrier_signal_isfirst and s_barrier_leave,
instructions that write to SCC, counter is KM_CNT.
Also start tracking SCC for reads and writes.
s_barrier_wait on the same barrier guarantees that the SCC write from
s_barrier_signal_isfirst has landed, no need to insert s_wait_kmcnt.



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