Skip to content

Commit c35107b

Browse files
committed
Exit on sub-dword size before the assert it is divisable by 32.
1 parent f3e9035 commit c35107b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2265,9 +2265,9 @@ bool AMDGPUCodeGenPrepareImpl::visitMovDppIntrinsic(IntrinsicInst &I) {
22652265
Type *SrcTy = I.getType();
22662266
assert(SrcTy->isIntegerTy());
22672267
unsigned Size = SrcTy->getPrimitiveSizeInBits();
2268-
assert(Size % 32 == 0);
22692268
if (Size <= 32)
22702269
return false;
2270+
assert(Size % 32 == 0);
22712271

22722272
IRBuilder<> Builder(&I);
22732273
Builder.SetCurrentDebugLocation(I.getDebugLoc());

0 commit comments

Comments
 (0)