diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp --- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp +++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp @@ -7483,7 +7483,7 @@ // If we have a definitive size, we can use it. Otherwise we need to inspect // the operands to know the size. - if (isFixedSize(MI)) { + if (isFixedSize(MI) || isSOPK()) { unsigned Size = DescSize; // If we hit the buggy offset, an extra nop will be inserted in MC so