From ab3c5fb28259a3b768d9774baddaab58c7e51438 Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Wed, 31 Mar 2021 17:52:22 +0800 Subject: [PATCH] [NFC][SVE] Use SVE_4_Op_Imm_Pat for sve_intx_dot_by_indexed_elem --- llvm/lib/Target/AArch64/SVEInstrFormats.td | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/AArch64/SVEInstrFormats.td b/llvm/lib/Target/AArch64/SVEInstrFormats.td index 5c9d697a7865..2d3aa10b8c1e 100644 --- a/llvm/lib/Target/AArch64/SVEInstrFormats.td +++ b/llvm/lib/Target/AArch64/SVEInstrFormats.td @@ -2852,10 +2852,8 @@ multiclass sve_intx_dot_by_indexed_elem(NAME # _S) $Op1, $Op2, $Op3, VectorIndexS32b_timm:$idx)>; - def : Pat<(nxv2i64 (op nxv2i64:$Op1, nxv8i16:$Op2, nxv8i16:$Op3, (i32 VectorIndexD32b_timm:$idx))), - (!cast(NAME # _D) $Op1, $Op2, $Op3, VectorIndexD32b_timm:$idx)>; + def : SVE_4_Op_Imm_Pat(NAME # _S)>; + def : SVE_4_Op_Imm_Pat(NAME # _D)>; } //===----------------------------------------------------------------------===//