@@ -48,9 +48,6 @@ void llvm::createMemCpyLoopKnownSize(
48
48
Ctx, CopyLen, SrcAS, DstAS, SrcAlign, DstAlign, AtomicElementSize);
49
49
assert ((!AtomicElementSize || !LoopOpType->isVectorTy ()) &&
50
50
" Atomic memcpy lowering is not supported for vector operand type" );
51
- assert ((DL.getTypeStoreSize (LoopOpType) == DL.getTypeAllocSize (LoopOpType)) &&
52
- " Bytes are missed if store and alloc size of the LoopOpType do not "
53
- " match" );
54
51
55
52
Type *Int8Type = Type::getInt8Ty (Ctx);
56
53
unsigned LoopOpSize = DL.getTypeStoreSize (LoopOpType);
@@ -203,9 +200,6 @@ void llvm::createMemCpyLoopUnknownSize(
203
200
Ctx, CopyLen, SrcAS, DstAS, SrcAlign, DstAlign, AtomicElementSize);
204
201
assert ((!AtomicElementSize || !LoopOpType->isVectorTy ()) &&
205
202
" Atomic memcpy lowering is not supported for vector operand type" );
206
- assert ((DL.getTypeStoreSize (LoopOpType) == DL.getTypeAllocSize (LoopOpType)) &&
207
- " Bytes are missed if store and alloc size of the LoopOpType do not "
208
- " match" );
209
203
unsigned LoopOpSize = DL.getTypeStoreSize (LoopOpType);
210
204
assert ((!AtomicElementSize || LoopOpSize % *AtomicElementSize == 0 ) &&
211
205
" Atomic memcpy lowering is not supported for selected operand size" );
@@ -420,9 +414,6 @@ static void createMemMoveLoopUnknownSize(Instruction *InsertBefore,
420
414
421
415
Type *LoopOpType = TTI.getMemcpyLoopLoweringType (Ctx, CopyLen, SrcAS, DstAS,
422
416
SrcAlign, DstAlign);
423
- assert ((DL.getTypeStoreSize (LoopOpType) == DL.getTypeAllocSize (LoopOpType)) &&
424
- " Bytes are missed if store and alloc size of the LoopOpType do not "
425
- " match" );
426
417
unsigned LoopOpSize = DL.getTypeStoreSize (LoopOpType);
427
418
Type *Int8Type = Type::getInt8Ty (Ctx);
428
419
bool LoopOpIsInt8 = LoopOpType == Int8Type;
@@ -681,9 +672,6 @@ static void createMemMoveLoopKnownSize(Instruction *InsertBefore,
681
672
682
673
Type *LoopOpType = TTI.getMemcpyLoopLoweringType (Ctx, CopyLen, SrcAS, DstAS,
683
674
SrcAlign, DstAlign);
684
- assert ((DL.getTypeStoreSize (LoopOpType) == DL.getTypeAllocSize (LoopOpType)) &&
685
- " Bytes are missed if store and alloc size of the LoopOpType do not "
686
- " match" );
687
675
unsigned LoopOpSize = DL.getTypeStoreSize (LoopOpType);
688
676
Type *Int8Type = Type::getInt8Ty (Ctx);
689
677
0 commit comments