[PATCH] D130677: [AMDGPU] Fix DGEMM hazard for GFX90a

Vang Thao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 17:54:32 PDT 2022


vangthao created this revision.
Herald added subscribers: kosarev, jsilvanus, foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
Herald added a project: All.
vangthao requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

For VALU write and memory (VM, L/DS, FLAT) instructions, SQ would insert
wait-states to avoid data hazard. However when there is a DGEMM instruction
in-between them, SQ incorrectly disables the wait-states thus the data hazard
needs to be handled with this workaround.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130677

Files:
  llvm/lib/Target/AMDGPU/AMDGPU.td
  llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
  llvm/lib/Target/AMDGPU/GCNSubtarget.h
  llvm/test/CodeGen/AMDGPU/mai-hazards-gfx90a.mir
  llvm/test/CodeGen/AMDGPU/mai-hazards-gfx940.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130677.448221.patch
Type: text/x-patch
Size: 10806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220728/7f4552a0/attachment.bin>


More information about the llvm-commits mailing list