Skip to content

Commit 6ba34f9

Browse files
authored
[RISCV] Use policy instead of ForceTailAgnostic for vmsbf/vmsif/vmsof pseudos. (#127535)
ForceTailAgnostic is currently treated as an override of the policy operand. It doesn't do anything else so we can just use the policy directly.
1 parent a5e6ccf commit 6ba34f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ def DecImm : SDNodeXForm<imm, [{
122122

123123
defvar TAIL_AGNOSTIC = 1;
124124
defvar TU_MU = 0;
125+
defvar TA_MU = 1;
125126
defvar TA_MA = 3;
126127

127128
//===----------------------------------------------------------------------===//
@@ -2029,7 +2030,6 @@ multiclass VPseudoVSFS_M {
20292030
def "_M_" # mti.BX : VPseudoUnaryNoMaskNoPolicy<VR, VR, constraint>,
20302031
SchedUnary<"WriteVMSFSV", "ReadVMSFSV", mx,
20312032
forcePassthruRead=true>;
2032-
let ForceTailAgnostic = true in
20332033
def "_M_" # mti.BX # "_MASK" : VPseudoUnaryMask<VR, VR, constraint,
20342034
sewop = sew_mask>,
20352035
SchedUnary<"WriteVMSFSV", "ReadVMSFSV", mx,
@@ -4019,7 +4019,7 @@ class VPatMaskUnaryMask<string intrinsic_name,
40194019
(!cast<Instruction>(inst#"_M_"#mti.BX#"_MASK")
40204020
(mti.Mask VR:$passthru),
40214021
(mti.Mask VR:$rs2),
4022-
(mti.Mask VMV0:$vm), GPR:$vl, mti.Log2SEW, TU_MU)>;
4022+
(mti.Mask VMV0:$vm), GPR:$vl, mti.Log2SEW, TA_MU)>;
40234023

40244024
class VPatUnaryAnyMask<string intrinsic,
40254025
string inst,

0 commit comments

Comments
 (0)