1 ; RUN: opt < %s -passes=instcombine -disable-output
2 ; Checks that bitcasts are not converted into GEP when
3 ; when the size of an aggregate cannot be determined.
4 %swift.opaque = type opaque
5 %SQ = type <{ [8 x i8] }>
8 %V = type <{ <{ %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8, %Vs4Int8 }>, %Si, %SQ, %SQ, %Si, %swift.opaque }>
9 %Vs4Int8 = type <{ i8 }>
10 %swift.type = type { i64 }
12 declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture readonly, i64, i1) #8
14 @_swift_slowAlloc = external global ptr
16 declare ptr @rt_swift_slowAlloc(i64, i64)
18 define ptr @_TwTkV(ptr %dest, ptr %src,
19 ptr %bios_boot_params) #0 {
21 %0 = call noalias ptr @rt_swift_slowAlloc(i64 40, i64 0) #11
22 store ptr %0, ptr %dest, align 8
23 call void @llvm.memcpy.p0.p0.i64(ptr %0, ptr %src, i64 40, i1 false)