Skip to content

Commit

Permalink
Exit on sub-dword size before the assert it is divisable by 32.
Browse files Browse the repository at this point in the history
  • Loading branch information
rampitec committed Oct 28, 2024
1 parent f3e9035 commit c35107b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2265,9 +2265,9 @@ bool AMDGPUCodeGenPrepareImpl::visitMovDppIntrinsic(IntrinsicInst &I) {
Type *SrcTy = I.getType();
assert(SrcTy->isIntegerTy());
unsigned Size = SrcTy->getPrimitiveSizeInBits();
assert(Size % 32 == 0);
if (Size <= 32)
return false;
assert(Size % 32 == 0);

IRBuilder<> Builder(&I);
Builder.SetCurrentDebugLocation(I.getDebugLoc());
Expand Down

0 comments on commit c35107b

Please sign in to comment.