[all-commits] [llvm/llvm-project] b120da: [AMDGPU] Support GFX12 VDSDIR instructions WAITVMS...

Jay Foad via All-commits all-commits at lists.llvm.org
Thu Jan 11 05:20:31 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b120dae9bb99b67d12c7b307debb222953473b7c
      https://github.com/llvm/llvm-project/commit/b120dae9bb99b67d12c7b307debb222953473b7c
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-01-11 (Thu, 11 Jan 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h
    A llvm/test/CodeGen/AMDGPU/lds-direct-hazards-gfx11.mir
    A llvm/test/CodeGen/AMDGPU/lds-direct-hazards-gfx12.mir
    R llvm/test/CodeGen/AMDGPU/lds-direct-hazards.mir

  Log Message:
  -----------
  [AMDGPU] Support GFX12 VDSDIR instructions WAITVMSRC operand in GCNHazardRecognizer (#77628)

Modify GCNHazardRecognizer::fixLdsDirectVMEMHazard() so the waitvsrc
operand
in gfx12 DS_PARAM_LOAD or DS_DIRECT_LOAD instructions is set
appropriately
depending on whether a hazard is found or not, rather than inserting an
S_WAITCNT_DEPCTR instruction if a hazard needs to be mitigated.

Co-authored-by: Stephen Thomas <Stephen.Thomas at amd.com>




More information about the All-commits mailing list