Skip to content

Commit 3e6d6f2

Browse files
authored
[AMDGPU] Set Size to 4 for V_MOV_B64_PSEUDO and S_MOV_B64_IMM_PSEUDO (#70376)
These are not fixed size instructions, so immediate size shall be added separately. A minimal opcode size 4 since the inception of the V_MOV_B64 instruction. A real instruction can be as small as 4 bytes in case of inline immediate. Otherwise it is NFCI.
1 parent 4b58112 commit 3e6d6f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstructions.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def V_MOV_B64_PSEUDO : VPseudoInstSI <(outs VReg_64:$vdst),
132132
let isAsCheapAsAMove = 1;
133133
let isMoveImm = 1;
134134
let SchedRW = [Write64Bit];
135-
let Size = 16; // Needs maximum 2 v_mov_b32 instructions 8 byte long each.
135+
let Size = 4;
136136
let UseNamedOperandTable = 1;
137137
}
138138

@@ -149,7 +149,7 @@ def S_MOV_B64_IMM_PSEUDO : SPseudoInstSI <(outs SReg_64:$sdst),
149149
let isAsCheapAsAMove = 1;
150150
let isMoveImm = 1;
151151
let SchedRW = [WriteSALU, Write64Bit];
152-
let Size = 16; // Needs maximum 2 s_mov_b32 instructions 8 byte long each.
152+
let Size = 4;
153153
let Uses = [];
154154
let UseNamedOperandTable = 1;
155155
}

0 commit comments

Comments
 (0)