Skip to content

Commit

Permalink
[RISCV] Remove '.mask' from vcompress intrinsic name. NFC
Browse files Browse the repository at this point in the history
It has a mask argument, but isn't a masked instruction. It doesn't
use the mask policy of or the v0.t syntax.
  • Loading branch information
topperc committed Jan 12, 2021
1 parent a7130d8 commit 1730b0f
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 268 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/IR/IntrinsicsRISCV.td
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ let TargetPrefix = "riscv" in {

defm vrgather : RISCVBinaryAAX;

def "int_riscv_vcompress_mask" : RISCVBinaryAAAMask;
def "int_riscv_vcompress" : RISCVBinaryAAAMask;

defm vaaddu : RISCVSaturatingBinaryAAX;
defm vaadd : RISCVSaturatingBinaryAAX;
Expand Down
6 changes: 3 additions & 3 deletions llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ multiclass VPseudoUnaryV_M {
multiclass VPseudoUnaryV_V_AnyMask {
foreach m = MxList.m in {
let VLMul = m.value in
def _VM # "_" # m.MX # "_MASK" : VPseudoUnaryAnyMask<m.vrclass, m.vrclass>;
def _VM # "_" # m.MX : VPseudoUnaryAnyMask<m.vrclass, m.vrclass>;
}
}

Expand Down Expand Up @@ -1404,12 +1404,12 @@ class VPatUnaryAnyMask<string intrinsic,
LMULInfo vlmul,
VReg result_reg_class,
VReg op1_reg_class> :
Pat<(result_type (!cast<Intrinsic>(intrinsic#"_mask")
Pat<(result_type (!cast<Intrinsic>(intrinsic)
(result_type result_reg_class:$merge),
(op1_type op1_reg_class:$rs1),
(mask_type VR:$rs2),
(XLenVT GPR:$vl))),
(!cast<Instruction>(inst#"_"#kind#"_"#vlmul.MX#"_MASK")
(!cast<Instruction>(inst#"_"#kind#"_"#vlmul.MX)
(result_type result_reg_class:$merge),
(op1_type op1_reg_class:$rs1),
(mask_type VR:$rs2),
Expand Down
Loading

0 comments on commit 1730b0f

Please sign in to comment.