[llvm] 7e54d73 - [RISCV] Remove VPatILoad and VPatIStore multiclasses that are no longer used. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 19 13:24:51 PST 2021
Author: Craig Topper
Date: 2021-02-19T13:23:08-08:00
New Revision: 7e54d7304be2ddb51b4e8ad5d1b29b103360e4cf
URL: https://github.com/llvm/llvm-project/commit/7e54d7304be2ddb51b4e8ad5d1b29b103360e4cf
DIFF: https://github.com/llvm/llvm-project/commit/7e54d7304be2ddb51b4e8ad5d1b29b103360e4cf.diff
LOG: [RISCV] Remove VPatILoad and VPatIStore multiclasses that are no longer used. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 5d7026621121..875fb3717cde 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -2352,31 +2352,6 @@ multiclass VPatSLoad<string intrinsic,
$rs1, $rs2, (mask_type V0), GPR:$vl, sew)>;
}
-multiclass VPatILoad<string intrinsic,
- string inst,
- ValueType type,
- ValueType idx_type,
- ValueType mask_type,
- int sew,
- LMULInfo vlmul,
- LMULInfo idx_vlmul,
- VReg reg_class,
- VReg idx_reg_class>
-{
- defvar Intr = !cast<Intrinsic>(intrinsic);
- defvar Pseudo = !cast<Instruction>(inst#"_V_"#idx_vlmul.MX#"_"#vlmul.MX);
- def : Pat<(type (Intr GPR:$rs1, (idx_type idx_reg_class:$rs2), (XLenVT (VLOp GPR:$vl)))),
- (Pseudo $rs1, $rs2, GPR:$vl, sew)>;
-
- defvar IntrMask = !cast<Intrinsic>(intrinsic # "_mask");
- defvar PseudoMask = !cast<Instruction>(inst#"_V_"#idx_vlmul.MX#"_"#vlmul.MX#"_MASK");
- def : Pat<(type (IntrMask (type GetVRegNoV0<reg_class>.R:$merge),
- GPR:$rs1, (idx_type idx_reg_class:$rs2),
- (mask_type V0), (XLenVT (VLOp GPR:$vl)))),
- (PseudoMask $merge,
- $rs1, $rs2, (mask_type V0), GPR:$vl, sew)>;
-}
-
multiclass VPatUSStore<string intrinsic,
string inst,
ValueType type,
@@ -2413,29 +2388,6 @@ multiclass VPatSStore<string intrinsic,
(PseudoMask $rs3, $rs1, $rs2, (mask_type V0), GPR:$vl, sew)>;
}
-multiclass VPatIStore<string intrinsic,
- string inst,
- ValueType type,
- ValueType idx_type,
- ValueType mask_type,
- int sew,
- LMULInfo vlmul,
- LMULInfo idx_vlmul,
- VReg reg_class,
- VReg idx_reg_class>
-{
- defvar Intr = !cast<Intrinsic>(intrinsic);
- defvar Pseudo = !cast<Instruction>(inst#"_V_"#idx_vlmul.MX#"_"#vlmul.MX);
- def : Pat<(Intr (type reg_class:$rs3), GPR:$rs1,
- (idx_type idx_reg_class:$rs2), (XLenVT (VLOp GPR:$vl))),
- (Pseudo $rs3, $rs1, $rs2, GPR:$vl, sew)>;
- defvar IntrMask = !cast<Intrinsic>(intrinsic # "_mask");
- defvar PseudoMask = !cast<Instruction>(inst#"_V_"#idx_vlmul.MX#"_"#vlmul.MX#"_MASK");
- def : Pat<(IntrMask (type reg_class:$rs3), GPR:$rs1,
- (idx_type idx_reg_class:$rs2), (mask_type V0), (XLenVT (VLOp GPR:$vl))),
- (PseudoMask $rs3, $rs1, $rs2, (mask_type V0), GPR:$vl, sew)>;
-}
-
multiclass VPatUnaryS_M<string intrinsic_name,
string inst>
{
More information about the llvm-commits
mailing list