aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2023-09-07 13:12:58 +0200
committerGitHub <noreply@github.com>2023-09-07 13:12:58 +0200
commit30955c9d22fe87a28b0a8f1545e4b61aa9f92ed4 (patch)
treee84f84b6b4872000b13044d19412b0d4bba2f51b /llvm/lib
parentb7a305deca809e281e7b28a5714d708906821773 (diff)
downloadllvm-30955c9d22fe87a28b0a8f1545e4b61aa9f92ed4.zip
llvm-30955c9d22fe87a28b0a8f1545e4b61aa9f92ed4.tar.gz
llvm-30955c9d22fe87a28b0a8f1545e4b61aa9f92ed4.tar.bz2
[AMDGPU] Fix V_MOV_B32_indirect inst size (#65584)
This inst lowers to a normal v_mov_b32 so it's not zero-sized, but has a size of 4. Solves SWDEV-416337
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/VOP1Instructions.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/VOP1Instructions.td b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
index af55d32..d536dfd8 100644
--- a/llvm/lib/Target/AMDGPU/VOP1Instructions.td
+++ b/llvm/lib/Target/AMDGPU/VOP1Instructions.td
@@ -1173,7 +1173,7 @@ defm V_CVT_NORM_U16_F16 : VOP1_Real_vi<0x4e>;
defm V_ACCVGPR_MOV_B32 : VOP1Only_Real_vi<0x52>;
-let VOP1 = 1, SubtargetPredicate = isGFX8GFX9, Uses = [EXEC, M0] in {
+let VOP1 = 1, SubtargetPredicate = isGFX8GFX9, Uses = [EXEC, M0], Size = V_MOV_B32_e32.Size in {
// Copy of v_mov_b32 with $vdst as a use operand for use with VGPR
// indexing mode. vdst can't be treated as a def for codegen purposes,