[llvm] cf55249 - [RISCV] Set SEW on VPseudoTernaryWithTailPolicy and VPseudoTernaryWithTailPolicyRoundingMode

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 31 12:00:44 PDT 2023


Author: Michael Maitland
Date: 2023-08-31T12:00:01-07:00
New Revision: cf552493a417c838783568887337c99671b088fd

URL: https://github.com/llvm/llvm-project/commit/cf552493a417c838783568887337c99671b088fd
DIFF: https://github.com/llvm/llvm-project/commit/cf552493a417c838783568887337c99671b088fd.diff

LOG: [RISCV] Set SEW on VPseudoTernaryWithTailPolicy and VPseudoTernaryWithTailPolicyRoundingMode

The SEW field should be set here so llvm-mca can correctly resolve the
SchedClassID from the InversePseudosTable.

Differential Revision: https://reviews.llvm.org/D159231

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index fe8d7ef79ded84..f59c0d837e2a96 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -3143,7 +3143,7 @@ multiclass VPseudoTernaryWithTailPolicy<VReg RetClass,
                                           int sew,
                                           string Constraint = "",
                                           bit Commutable = 0> {
-  let VLMul = MInfo.value in {
+  let VLMul = MInfo.value, SEW=sew in {
     defvar mx = MInfo.MX;
     let isCommutable = Commutable in
     def "_" # mx # "_E" # sew : VPseudoTernaryNoMaskWithPolicy<RetClass, Op1Class, Op2Class, Constraint>;
@@ -3158,7 +3158,7 @@ multiclass VPseudoTernaryWithTailPolicyRoundingMode<VReg RetClass,
                                           int sew,
                                           string Constraint = "",
                                           bit Commutable = 0> {
-  let VLMul = MInfo.value in {
+  let VLMul = MInfo.value, SEW=sew in {
     defvar mx = MInfo.MX;
     let isCommutable = Commutable in
     def "_" # mx # "_E" # sew


        


More information about the llvm-commits mailing list