From 8ecddf3bbc31152ba0be77385e0dd2010dc8779e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 17 Feb 2025 10:27:15 -0800 Subject: [PATCH] [RISCV] Use policy instead of ForceTailAgnostic for vmsbf/vmsif/vmsof pseudos. 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. I'm going to see about removing the only other use of ForceTailAgnostic by adding a policy operand to those pseudos. --- llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td index 77f41e3c202c7..33c04d1c05613 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td @@ -122,6 +122,7 @@ def DecImm : SDNodeXForm, SchedUnary<"WriteVMSFSV", "ReadVMSFSV", mx, forcePassthruRead=true>; - let ForceTailAgnostic = true in def "_M_" # mti.BX # "_MASK" : VPseudoUnaryMask, SchedUnary<"WriteVMSFSV", "ReadVMSFSV", mx, @@ -4019,7 +4019,7 @@ class VPatMaskUnaryMask(inst#"_M_"#mti.BX#"_MASK") (mti.Mask VR:$passthru), (mti.Mask VR:$rs2), - (mti.Mask VMV0:$vm), GPR:$vl, mti.Log2SEW, TU_MU)>; + (mti.Mask VMV0:$vm), GPR:$vl, mti.Log2SEW, TA_MU)>; class VPatUnaryAnyMask