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

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Tue Dec 2 02:53:02 PST 2025


  Branch: refs/heads/users/pierre-vh/buf-can-access-scratch
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ccd857dd018dbe7e53f53a635ca8fc35cf3a876
      https://github.com/llvm/llvm-project/commit/0ccd857dd018dbe7e53f53a635ca8fc35cf3a876
  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.



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