[PATCH] D155815: [RISCV] Remove VPatBinaryExtVL_WV_WX multiclass. NFC
Luke Lau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 21 02:13:56 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf6bdfb0b9269: [RISCV] Remove VPatBinaryExtVL_WV_WX multiclass. NFC (authored by luke).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155815/new/
https://reviews.llvm.org/D155815
Files:
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -1431,7 +1431,7 @@
}
}
-multiclass VPatBinaryExtVL_WV_WX<SDNode op, string instruction_name> {
+multiclass VPatBinaryVL_WV_WX_WI<SDNode op, string instruction_name> {
foreach vtiToWti = AllWidenableIntVectors in {
defvar vti = vtiToWti.Vti;
defvar wti = vtiToWti.Wti;
@@ -1458,26 +1458,17 @@
(!cast<Instruction>(instruction_name#"_WX_"#vti.LMul.MX)
(vti.Vector (IMPLICIT_DEF)),
wti.RegClass:$rs2, GPR:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
- }
- }
-}
-multiclass VPatBinaryVL_WV_WX_WI<SDNode op, string instruction_name>
- : VPatBinaryExtVL_WV_WX<op, instruction_name> {
- foreach vtiToWti = AllWidenableIntVectors in {
- defvar vti = vtiToWti.Vti;
- defvar wti = vtiToWti.Wti;
- let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
- GetVTypePredicates<wti>.Predicates) in
- def : Pat<
- (vti.Vector
- (riscv_trunc_vector_vl
- (op (wti.Vector wti.RegClass:$rs2),
- (wti.Vector (SplatPat_uimm5 uimm5:$rs1))), (vti.Mask true_mask),
- VLOpFrag)),
- (!cast<Instruction>(instruction_name#"_WI_"#vti.LMul.MX)
- (vti.Vector (IMPLICIT_DEF)),
- wti.RegClass:$rs2, uimm5:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
+ def : Pat<
+ (vti.Vector
+ (riscv_trunc_vector_vl
+ (op (wti.Vector wti.RegClass:$rs2),
+ (wti.Vector (SplatPat_uimm5 uimm5:$rs1))), (vti.Mask true_mask),
+ VLOpFrag)),
+ (!cast<Instruction>(instruction_name#"_WI_"#vti.LMul.MX)
+ (vti.Vector (IMPLICIT_DEF)),
+ wti.RegClass:$rs2, uimm5:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
+ }
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155815.542818.patch
Type: text/x-patch
Size: 1939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230721/4d99890d/attachment.bin>
More information about the llvm-commits
mailing list