aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@amd.com>2024-03-19 09:58:09 -0700
committerGitHub <noreply@github.com>2024-03-19 09:58:09 -0700
commitab76052fa9331f418d7911cafefabd4dd0c1941e (patch)
tree3e27b08c81e346152903c79cbb2e67b7b10cf44a /llvm/lib
parent9ed1aa36be654f6687c4f9000c973b722217881c (diff)
downloadllvm-ab76052fa9331f418d7911cafefabd4dd0c1941e.zip
llvm-ab76052fa9331f418d7911cafefabd4dd0c1941e.tar.gz
llvm-ab76052fa9331f418d7911cafefabd4dd0c1941e.tar.bz2
AMDGPU: Treat SWMMAC the same as MFMA and other WMMA for sched_barrier (#85721)
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.h b/llvm/lib/Target/AMDGPU/SIInstrInfo.h
index a62bf77..4c5978c 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.h
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.h
@@ -815,7 +815,7 @@ public:
}
static bool isMFMAorWMMA(const MachineInstr &MI) {
- return isMFMA(MI) || isWMMA(MI);
+ return isMFMA(MI) || isWMMA(MI) || isSWMMAC(MI);
}
static bool isSWMMAC(const MachineInstr &MI) {