[llvm] [RISCV] Remove unused isSEWAware, NFC (PR #67411)
Jianjian Guan via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 02:30:12 PDT 2023
https://github.com/jacquesguan created https://github.com/llvm/llvm-project/pull/67411
None
>From a2d27a3dbda3e5dd356b7c9ba1a3b6cf4c17e3d1 Mon Sep 17 00:00:00 2001
From: Jianjian GUAN <jacquesguan at me.com>
Date: Tue, 26 Sep 2023 16:24:51 +0800
Subject: [PATCH] [RISCV] Remove unused isSEWAware, NFC
---
.../Target/RISCV/RISCVInstrInfoVPseudos.td | 22 ++++++-------------
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 3ce912d98a7ecc1..0c76e36daf72033 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -3968,16 +3968,12 @@ class VPatUnaryNoMask<string intrinsic_name,
int log2sew,
LMULInfo vlmul,
VReg result_reg_class,
- VReg op2_reg_class,
- bit isSEWAware = 0> :
+ VReg op2_reg_class> :
Pat<(result_type (!cast<Intrinsic>(intrinsic_name)
(result_type result_reg_class:$merge),
(op2_type op2_reg_class:$rs2),
VLOpFrag)),
- (!cast<Instruction>(
- !if(isSEWAware,
- inst#"_"#kind#"_"#vlmul.MX#"_E"#!shl(1, log2sew),
- inst#"_"#kind#"_"#vlmul.MX))
+ (!cast<Instruction>(inst#"_"#kind#"_"#vlmul.MX)
(result_type result_reg_class:$merge),
(op2_type op2_reg_class:$rs2),
GPR:$vl, log2sew, TU_MU)>;
@@ -4016,17 +4012,13 @@ class VPatUnaryMask<string intrinsic_name,
int log2sew,
LMULInfo vlmul,
VReg result_reg_class,
- VReg op2_reg_class,
- bit isSEWAware = 0> :
+ VReg op2_reg_class> :
Pat<(result_type (!cast<Intrinsic>(intrinsic_name#"_mask")
(result_type result_reg_class:$merge),
(op2_type op2_reg_class:$rs2),
(mask_type V0),
VLOpFrag, (XLenVT timm:$policy))),
- (!cast<Instruction>(
- !if(isSEWAware,
- inst#"_"#kind#"_"#vlmul.MX#"_E"#!shl(1, log2sew)#"_MASK",
- inst#"_"#kind#"_"#vlmul.MX#"_MASK"))
+ (!cast<Instruction>(inst#"_"#kind#"_"#vlmul.MX#"_MASK")
(result_type result_reg_class:$merge),
(op2_type op2_reg_class:$rs2),
(mask_type V0), GPR:$vl, log2sew, (XLenVT timm:$policy))>;
@@ -4712,15 +4704,15 @@ multiclass VPatUnaryV_VF<string intrinsic, string instruction, string suffix,
}
multiclass VPatUnaryV_V<string intrinsic, string instruction,
- list<VTypeInfo> vtilist, bit isSEWAware = 0> {
+ list<VTypeInfo> vtilist> {
foreach vti = vtilist in {
let Predicates = GetVTypePredicates<vti>.Predicates in {
def : VPatUnaryNoMask<intrinsic, instruction, "V",
vti.Vector, vti.Vector, vti.Log2SEW,
- vti.LMul, vti.RegClass, vti.RegClass, isSEWAware>;
+ vti.LMul, vti.RegClass, vti.RegClass>;
def : VPatUnaryMask<intrinsic, instruction, "V",
vti.Vector, vti.Vector, vti.Mask, vti.Log2SEW,
- vti.LMul, vti.RegClass, vti.RegClass, isSEWAware>;
+ vti.LMul, vti.RegClass, vti.RegClass>;
}
}
}
More information about the llvm-commits
mailing list