Skip to content

Commit 05357a7

Browse files
committed
[RISCV] Remove duplicate Zvfbfmin patterns that use base Zve instructions.
These patterns already exist in our other V extension files using AllFloatAndBF16Vectors without Zvfbfmin predicate. Which is good because we need them for Zvfbfa.
1 parent f36c73e commit 05357a7

File tree

1 file changed

+0
-54
lines changed

1 file changed

+0
-54
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZvfbf.td

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -439,20 +439,7 @@ let Predicates = [HasStdExtZvfbfmin] in {
439439
fvti.AVL, fvti.Log2SEW, TA_MA)>;
440440
}
441441

442-
defm : VPatUnaryV_V_AnyMask<"int_riscv_vcompress", "PseudoVCOMPRESS", AllBF16Vectors>;
443-
defm : VPatBinaryV_VV_VX_VI_INT<"int_riscv_vrgather", "PseudoVRGATHER",
444-
AllBF16Vectors, uimm5>;
445-
defm : VPatBinaryV_VV_INT_EEW<"int_riscv_vrgatherei16_vv", "PseudoVRGATHEREI16",
446-
eew=16, vtilist=AllBF16Vectors>;
447-
defm : VPatTernaryV_VX_VI<"int_riscv_vslideup", "PseudoVSLIDEUP", AllBF16Vectors, uimm5>;
448-
defm : VPatTernaryV_VX_VI<"int_riscv_vslidedown", "PseudoVSLIDEDOWN", AllBF16Vectors, uimm5>;
449-
450442
foreach fvti = AllBF16Vectors in {
451-
defm : VPatBinaryCarryInTAIL<"int_riscv_vmerge", "PseudoVMERGE", "VVM",
452-
fvti.Vector,
453-
fvti.Vector, fvti.Vector, fvti.Mask,
454-
fvti.Log2SEW, fvti.LMul, fvti.RegClass,
455-
fvti.RegClass, fvti.RegClass>;
456443
defm : VPatBinaryCarryInTAIL<"int_riscv_vfmerge", "PseudoVFMERGE",
457444
"V"#fvti.ScalarSuffix#"M",
458445
fvti.Vector,
@@ -468,12 +455,6 @@ let Predicates = [HasStdExtZvfbfmin] in {
468455
(fvti.Mask VMV0:$vm), GPR:$vl, fvti.Log2SEW)>;
469456

470457
defvar ivti = GetIntVTypeInfo<fvti>.Vti;
471-
def : Pat<(fvti.Vector (vselect (fvti.Mask VMV0:$vm), fvti.RegClass:$rs1,
472-
fvti.RegClass:$rs2)),
473-
(!cast<Instruction>("PseudoVMERGE_VVM_"#fvti.LMul.MX)
474-
(fvti.Vector (IMPLICIT_DEF)),
475-
fvti.RegClass:$rs2, fvti.RegClass:$rs1, (fvti.Mask VMV0:$vm),
476-
fvti.AVL, fvti.Log2SEW)>;
477458

478459
def : Pat<(fvti.Vector (vselect (fvti.Mask VMV0:$vm),
479460
(SplatFPOp (SelectScalarFPAsInt (XLenVT GPR:$imm))),
@@ -498,15 +479,6 @@ let Predicates = [HasStdExtZvfbfmin] in {
498479
(fvti.Scalar fvti.ScalarRegClass:$rs1),
499480
(fvti.Mask VMV0:$vm), fvti.AVL, fvti.Log2SEW)>;
500481

501-
def : Pat<(fvti.Vector (riscv_vmerge_vl (fvti.Mask VMV0:$vm),
502-
fvti.RegClass:$rs1,
503-
fvti.RegClass:$rs2,
504-
fvti.RegClass:$passthru,
505-
VLOpFrag)),
506-
(!cast<Instruction>("PseudoVMERGE_VVM_"#fvti.LMul.MX)
507-
fvti.RegClass:$passthru, fvti.RegClass:$rs2, fvti.RegClass:$rs1, (fvti.Mask VMV0:$vm),
508-
GPR:$vl, fvti.Log2SEW)>;
509-
510482
def : Pat<(fvti.Vector (riscv_vmerge_vl (fvti.Mask VMV0:$vm),
511483
(SplatFPOp (SelectScalarFPAsInt (XLenVT GPR:$imm))),
512484
fvti.RegClass:$rs2,
@@ -535,32 +507,6 @@ let Predicates = [HasStdExtZvfbfmin] in {
535507
fvti.RegClass:$passthru, fvti.RegClass:$rs2,
536508
(fvti.Scalar fvti.ScalarRegClass:$rs1),
537509
(fvti.Mask VMV0:$vm), GPR:$vl, fvti.Log2SEW)>;
538-
539-
def : Pat<(fvti.Vector
540-
(riscv_vrgather_vv_vl fvti.RegClass:$rs2,
541-
(ivti.Vector fvti.RegClass:$rs1),
542-
fvti.RegClass:$passthru,
543-
(fvti.Mask VMV0:$vm),
544-
VLOpFrag)),
545-
(!cast<Instruction>("PseudoVRGATHER_VV_"# fvti.LMul.MX#"_E"# fvti.SEW#"_MASK")
546-
fvti.RegClass:$passthru, fvti.RegClass:$rs2, fvti.RegClass:$rs1,
547-
(fvti.Mask VMV0:$vm), GPR:$vl, fvti.Log2SEW, TAIL_AGNOSTIC)>;
548-
def : Pat<(fvti.Vector (riscv_vrgather_vx_vl fvti.RegClass:$rs2, GPR:$rs1,
549-
fvti.RegClass:$passthru,
550-
(fvti.Mask VMV0:$vm),
551-
VLOpFrag)),
552-
(!cast<Instruction>("PseudoVRGATHER_VX_"# fvti.LMul.MX#"_MASK")
553-
fvti.RegClass:$passthru, fvti.RegClass:$rs2, GPR:$rs1,
554-
(fvti.Mask VMV0:$vm), GPR:$vl, fvti.Log2SEW, TAIL_AGNOSTIC)>;
555-
def : Pat<(fvti.Vector
556-
(riscv_vrgather_vx_vl fvti.RegClass:$rs2,
557-
uimm5:$imm,
558-
fvti.RegClass:$passthru,
559-
(fvti.Mask VMV0:$vm),
560-
VLOpFrag)),
561-
(!cast<Instruction>("PseudoVRGATHER_VI_"# fvti.LMul.MX#"_MASK")
562-
fvti.RegClass:$passthru, fvti.RegClass:$rs2, uimm5:$imm,
563-
(fvti.Mask VMV0:$vm), GPR:$vl, fvti.Log2SEW, TAIL_AGNOSTIC)>;
564510
}
565511
}
566512

0 commit comments

Comments
 (0)