[llvm] [AMDGPU] Allow independent WMMA to resolve WMMA coexecution hazards (PR #213201)

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 10:56:30 PDT 2026


================
@@ -666,7 +666,9 @@ int GCNHazardRecognizer::getWaitStatesSince(IsHazardFn IsHazard,
 int GCNHazardRecognizer::getWaitStatesSinceVALU(IsHazardFn IsHazard,
                                                 int Limit) const {
   if (IsHazardRecognizerMode) {
-    auto GetVALUWaitStates = [](const MachineInstr &MI) -> unsigned {
+    auto GetVALUWaitStates = [this](const MachineInstr &MI) -> unsigned {
+      if (TII.isXDLWMMA(MI))
+        return TSchedModel.computeInstrLatency(&MI);
----------------
qcolombet wrote:

Isn't that covered in the added tests?
Like this is covered by `test_wmma_independent_wmma_partially_covers_wmma_hazard`, right?

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


More information about the llvm-commits mailing list