[llvm-branch-commits] [llvm] [AMDGPU] Handle gfx1251 wmma hazard (PR #203145)

Shilei Tian via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jun 11 07:59:54 PDT 2026


================
@@ -2091,11 +2091,27 @@ static bool isCoexecutableVALUInst(const MachineInstr &MI) {
 //
 // Category 3: SWMMAC with Latency 16
 //   SWMMAC_IU8
-static unsigned
-getWMMAHazardInstInCategory(const MachineInstr &MI, const SIInstrInfo *TII,
-                            const TargetSchedModel &SchedModel) {
+//
+// Category 4: 16 Pass GFX1251 WMMA with latency 16
+//   V_WMMA_*_16X16X32_{F16,BF16}
+//   V_WMMA_{F32,F16}_16X16X64_{FP8,BF8}*
+//   V_WMMA_F32_16x16x128_F8F6F4 (F4 only)
+//   V_SWMMAC_*_16X16X64_{F16,BF16}
+//   V_SWMMAC_{F32,F16}_16X16X128_{FP8,BF8}*
+//
+// Category: 32 Pass GFX1251 WMMA with latency 32
----------------
shiltian wrote:

But other category has a number and this category doesn't?

https://github.com/llvm/llvm-project/pull/203145


More information about the llvm-branch-commits mailing list