[llvm] [AMDGPU] Fix subtarget predicates for some V_MAD, V_FMA and V_DOT instructions. (PR #71194)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 05:11:46 PST 2023


================
@@ -360,7 +360,7 @@ class UDot2Pat<Instruction Inst> : GCNPat <
                              (and i32:$src1, (i32 65535)))
    ),
   (Inst (i32 8), $src0, (i32 8), $src1, (i32 8), $src2, (i1 0))> {
-  let SubtargetPredicate = !cast<VOP_Pseudo>(Inst).SubtargetPredicate;
+  let Predicates = !cast<VOP_Pseudo>(Inst).Predicates;
----------------
jayfoad wrote:

As a follow up maybe change the template argument to `VOP_Pseudo Inst` to avoid the cast?

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


More information about the llvm-commits mailing list