[all-commits] [llvm/llvm-project] 274306: [AMDGPU][GFX1250] Insert S_WAIT_XCNT for SMEM and ...

Christudasan Devadasan via All-commits all-commits at lists.llvm.org
Tue Jun 24 19:53:45 PDT 2025


  Branch: refs/heads/users/cdevadas/implement_s_wait_xcnt_insertion_gfx1250
  Home:   https://github.com/llvm/llvm-project
  Commit: 274306f8e420a9f525c0fc01e28aa5ae7dd12e7c
      https://github.com/llvm/llvm-project/commit/274306f8e420a9f525c0fc01e28aa5ae7dd12e7c
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
    A llvm/test/CodeGen/AMDGPU/global-load-xcnt.ll
    A llvm/test/CodeGen/AMDGPU/wait-xcnt.mir

  Log Message:
  -----------
  [AMDGPU][GFX1250] Insert S_WAIT_XCNT for SMEM and VMEM load-stores

This patch tracks the register operands of both VMEM (FLAT, MUBUF,
MTBUF) and SMEM load-store operations and inserts a S_WAIT_XCNT
instruction with sufficient wait-count before potentially redefining
them. For VMEM instructions, XNACK is returned in the same order as
they were issued and hence non-zero counter values can be inserted.
However, SMEM execution is out-of-order and so is their XNACK reception.
Thus, only zero counter value can be inserted to capture SMEM dependencies.


  Commit: b59ca18ae7b0d5991492eff6764dc750f56e1292
      https://github.com/llvm/llvm-project/commit/b59ca18ae7b0d5991492eff6764dc750f56e1292
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/global-load-xcnt.ll

  Log Message:
  -----------
  test fixup.


  Commit: 40a7ef22ca2a00a296db15f619e65e469adbebcd
      https://github.com/llvm/llvm-project/commit/40a7ef22ca2a00a296db15f619e65e469adbebcd
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/global-load-xcnt.ll

  Log Message:
  -----------
  test update after rebase from main.


  Commit: 4169c883048e0b6c6cc9639c8f8af873c637c8e1
      https://github.com/llvm/llvm-project/commit/4169c883048e0b6c6cc9639c8f8af873c637c8e1
  Author: Christudasan Devadasan <Christudasan.Devadasan at amd.com>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M llvm/test/CodeGen/AMDGPU/global-load-xcnt.ll

  Log Message:
  -----------
  enabled the one test earlier disabled.


Compare: https://github.com/llvm/llvm-project/compare/d1f8c45890d1...4169c883048e

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