Skip to content

Commit f6bdfb0

Browse files
committed
[RISCV] Remove VPatBinaryExtVL_WV_WX multiclass. NFC
It's no longer needed now that the sext/zext patterns have been merged. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D155815
1 parent 24628a1 commit f6bdfb0

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ multiclass VPatReductionVL_RM<SDNode vop, string instruction_name, bit is_float>
14311431
}
14321432
}
14331433

1434-
multiclass VPatBinaryExtVL_WV_WX<SDNode op, string instruction_name> {
1434+
multiclass VPatBinaryVL_WV_WX_WI<SDNode op, string instruction_name> {
14351435
foreach vtiToWti = AllWidenableIntVectors in {
14361436
defvar vti = vtiToWti.Vti;
14371437
defvar wti = vtiToWti.Wti;
@@ -1458,26 +1458,17 @@ multiclass VPatBinaryExtVL_WV_WX<SDNode op, string instruction_name> {
14581458
(!cast<Instruction>(instruction_name#"_WX_"#vti.LMul.MX)
14591459
(vti.Vector (IMPLICIT_DEF)),
14601460
wti.RegClass:$rs2, GPR:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
1461-
}
1462-
}
1463-
}
14641461

1465-
multiclass VPatBinaryVL_WV_WX_WI<SDNode op, string instruction_name>
1466-
: VPatBinaryExtVL_WV_WX<op, instruction_name> {
1467-
foreach vtiToWti = AllWidenableIntVectors in {
1468-
defvar vti = vtiToWti.Vti;
1469-
defvar wti = vtiToWti.Wti;
1470-
let Predicates = !listconcat(GetVTypePredicates<vti>.Predicates,
1471-
GetVTypePredicates<wti>.Predicates) in
1472-
def : Pat<
1473-
(vti.Vector
1474-
(riscv_trunc_vector_vl
1475-
(op (wti.Vector wti.RegClass:$rs2),
1476-
(wti.Vector (SplatPat_uimm5 uimm5:$rs1))), (vti.Mask true_mask),
1477-
VLOpFrag)),
1478-
(!cast<Instruction>(instruction_name#"_WI_"#vti.LMul.MX)
1479-
(vti.Vector (IMPLICIT_DEF)),
1480-
wti.RegClass:$rs2, uimm5:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
1462+
def : Pat<
1463+
(vti.Vector
1464+
(riscv_trunc_vector_vl
1465+
(op (wti.Vector wti.RegClass:$rs2),
1466+
(wti.Vector (SplatPat_uimm5 uimm5:$rs1))), (vti.Mask true_mask),
1467+
VLOpFrag)),
1468+
(!cast<Instruction>(instruction_name#"_WI_"#vti.LMul.MX)
1469+
(vti.Vector (IMPLICIT_DEF)),
1470+
wti.RegClass:$rs2, uimm5:$rs1, GPR:$vl, vti.Log2SEW, TU_MU)>;
1471+
}
14811472
}
14821473
}
14831474

0 commit comments

Comments
 (0)