[all-commits] [llvm/llvm-project] 6ddf2a: [AMDGPU] Adjust wave priority based on VMEM instru...

Ivan Kosarev via All-commits all-commits at lists.llvm.org
Wed Apr 27 06:40:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ddf2a824da97c81d7963c082c62640e8173b5b0
      https://github.com/llvm/llvm-project/commit/6ddf2a824da97c81d7963c082c62640e8173b5b0
  Author: Ivan Kosarev <ivan.kosarev at amd.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPU.h
    A llvm/lib/Target/AMDGPU/AMDGPUSetWavePriority.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/CMakeLists.txt
    A llvm/test/CodeGen/AMDGPU/set-wave-priority.ll

  Log Message:
  -----------
  [AMDGPU] Adjust wave priority based on VMEM instructions to avoid duty-cycling.

As older waves execute long sequences of VALU instructions, this may
prevent younger waves from address calculation and then issuing their
VMEM loads, which in turn leads the VALU unit to idle. This patch tries
to prevent this by temporarily raising the wave's priority.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D124246




More information about the All-commits mailing list