Skip to content

Commit

Permalink
[RISCV] Set SEW on VPseudoTernaryWithTailPolicy and VPseudoTernaryWit…
Browse files Browse the repository at this point in the history
…hTailPolicyRoundingMode

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
  • Loading branch information
michaelmaitland committed Aug 31, 2023
1 parent f0f395e commit cf55249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand All @@ -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
Expand Down

0 comments on commit cf55249

Please sign in to comment.