[llvm] 0af19ef - [RISCV] Remove true_mask patterns for VRGATHERE16..
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 21 12:00:43 PDT 2022
Author: Craig Topper
Date: 2022-06-21T11:59:37-07:00
New Revision: 0af19ef9ff5364f76f682259f9c7f5579aa95696
URL: https://github.com/llvm/llvm-project/commit/0af19ef9ff5364f76f682259f9c7f5579aa95696
DIFF: https://github.com/llvm/llvm-project/commit/0af19ef9ff5364f76f682259f9c7f5579aa95696.diff
LOG: [RISCV] Remove true_mask patterns for VRGATHERE16..
After adding it to the table so the post-isel peephole can handle it.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index c1e6dd045198..fbe396d278b4 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -1863,7 +1863,8 @@ multiclass VPseudoBinaryEmul<VReg RetClass,
def "_" # lmul.MX # "_" # emul.MX # "_TU": VPseudoBinaryNoMaskTU<RetClass, Op1Class, Op2Class,
Constraint>;
def "_" # lmul.MX # "_" # emul.MX # "_MASK" : VPseudoBinaryMaskPolicy<RetClass, Op1Class, Op2Class,
- Constraint>;
+ Constraint>,
+ RISCVMaskedPseudo</*MaskOpIdx*/ 3>;
}
}
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
index 4ce2721193b0..a9fd74e22cda 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
@@ -1871,13 +1871,6 @@ foreach vti = AllIntegerVectors in {
defvar emul_str = octuple_to_str<octuple_emul>.ret;
defvar ivti = !cast<VTypeInfo>("VI16" # emul_str);
defvar inst = "PseudoVRGATHEREI16_VV_" # vti.LMul.MX # "_" # emul_str;
- def : Pat<(vti.Vector (riscv_vrgatherei16_vv_vl (vti.Vector srcvalue),
- vti.RegClass:$rs2,
- (ivti.Vector ivti.RegClass:$rs1),
- (vti.Mask true_mask),
- VLOpFrag)),
- (!cast<Instruction>(inst)
- vti.RegClass:$rs2, ivti.RegClass:$rs1, GPR:$vl, vti.Log2SEW)>;
def : Pat<(vti.Vector
(riscv_vrgatherei16_vv_vl vti.RegClass:$merge,
@@ -1943,13 +1936,6 @@ foreach vti = AllFloatVectors in {
defvar emul_str = octuple_to_str<octuple_emul>.ret;
defvar ivti = !cast<VTypeInfo>("VI16" # emul_str);
defvar inst = "PseudoVRGATHEREI16_VV_" # vti.LMul.MX # "_" # emul_str;
- def : Pat<(vti.Vector (riscv_vrgatherei16_vv_vl (vti.Vector srcvalue),
- vti.RegClass:$rs2,
- (ivti.Vector ivti.RegClass:$rs1),
- (vti.Mask true_mask),
- VLOpFrag)),
- (!cast<Instruction>(inst)
- vti.RegClass:$rs2, ivti.RegClass:$rs1, GPR:$vl, vti.Log2SEW)>;
def : Pat<(vti.Vector
(riscv_vrgatherei16_vv_vl vti.RegClass:$merge,
More information about the llvm-commits
mailing list