[llvm] AMDGPU: Fix overriding SubtargetPredicate in MUBUF_Real_gfx90a (PR #96351)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 21 12:42:27 PDT 2024


https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/96351

None

>From d9b3e718237e26da9e0dbef1d9d35217b917659a Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Fri, 21 Jun 2024 21:37:47 +0200
Subject: [PATCH] AMDGPU: Fix overriding SubtargetPredicate in
 MUBUF_Real_gfx90a

---
 llvm/lib/Target/AMDGPU/BUFInstructions.td | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/BUFInstructions.td b/llvm/lib/Target/AMDGPU/BUFInstructions.td
index 21335e9b64647..fa2bc1edfa9a7 100644
--- a/llvm/lib/Target/AMDGPU/BUFInstructions.td
+++ b/llvm/lib/Target/AMDGPU/BUFInstructions.td
@@ -3082,9 +3082,9 @@ multiclass MUBUF_Real_vi_gfx90a<bits<7> op, bit isTFE = 0> : MUBUF_Real_vi<op> {
   }
 
   if ps.FPAtomic then {
-    let SubtargetPredicate = isGFX90AOnly,
-        AssemblerPredicate = isGFX90AOnly in
-    defm NAME : MUBUF_Real_gfx90a<op, 0>;
+    let AssemblerPredicate = isGFX90AOnly in
+      defm NAME : MUBUF_Real_gfx90a<op, 0>;
+
     def _gfx940 : MUBUF_Real_gfx940<op, ps>;
   }
 }



More information about the llvm-commits mailing list