[llvm] [AMDGPU] Set size to all SOP pseudos (PR #69756)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 20 12:23:20 PDT 2023
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/69756
None
>From d095f4fdf193fd1475364f1bc2cb54d05a7f3334 Mon Sep 17 00:00:00 2001
From: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: Fri, 20 Oct 2023 12:21:27 -0700
Subject: [PATCH] [AMDGPU] Set size to all SOP pseudos
---
llvm/lib/Target/AMDGPU/SOPInstructions.td | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td
index f3309049e7a7fd9..2f3b0ff2f76215e 100644
--- a/llvm/lib/Target/AMDGPU/SOPInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td
@@ -15,6 +15,7 @@ class SOP_Pseudo<string opName, dag outs, dag ins, string asmOps,
let isPseudo = 1;
let isCodeGenOnly = 1;
+ let Size = 4;
string Mnemonic = opName;
string AsmOperands = asmOps;
@@ -36,7 +37,6 @@ class SOP1_Pseudo <string opName, dag outs, dag ins,
let SALU = 1;
let SOP1 = 1;
let SchedRW = [WriteSALU];
- let Size = 4;
let UseNamedOperandTable = 1;
bits<1> has_src0 = 1;
@@ -455,7 +455,6 @@ class SOP2_Pseudo<string opName, dag outs, dag ins,
// let sdst = xxx in {
// for multiclasses that include both real and pseudo instructions.
// field bits<7> sdst = 0;
- // let Size = 4; // Do we need size here?
}
class SOP2_Real<SOP_Pseudo ps, string real_name = ps.Mnemonic> :
More information about the llvm-commits
mailing list