[all-commits] [llvm/llvm-project] 5e56e1: [AMDGPU] Take BUF instructions into account in may...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Wed Dec 3 01:18:48 PST 2025


  Branch: refs/heads/users/pierre-vh/buf-can-access-scratch
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e56e1e421ac1828b83130ed236cc02f73f168d1
      https://github.com/llvm/llvm-project/commit/5e56e1e421ac1828b83130ed236cc02f73f168d1
  Author: pvanhout <pierre.vanhoutryve at amd.com>
  Date:   2025-12-02 (Tue, 02 Dec 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/test/CodeGen/AMDGPU/release-vgprs.mir

  Log Message:
  -----------
  [AMDGPU] Take BUF instructions into account in mayAccessScratchThroughFlat

BUF instructions can access the scratch address space, so SIInsertWaitCnt needs to be able
to track the SCRATCH_WRITE_ACCESS event for such BUF instructions.

The release-vgprs.mir test had to be updated because BUF instructions w/o a MMO are now
tracked as a SCRATCH_WRITE_ACCESS. I added a MMO that touches global to keep the test result unchanged.


  Commit: 2894569b7b9b702a5cea9c7b80b54b7bfd1a8d61
      https://github.com/llvm/llvm-project/commit/2894569b7b9b702a5cea9c7b80b54b7bfd1a8d61
  Author: pvanhout <pierre.vanhoutryve at amd.com>
  Date:   2025-12-03 (Wed, 03 Dec 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/test/CodeGen/AMDGPU/release-vgprs.mir

  Log Message:
  -----------
  Comments


Compare: https://github.com/llvm/llvm-project/compare/0ccd857dd018...2894569b7b9b

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