1 ; RUN: opt -mem2reg -S -o - < %s | FileCheck %s
3 declare void @llvm.lifetime.start.p0i8(i64 %size, i8* nocapture %ptr)
4 declare void @llvm.lifetime.end.p0i8(i64 %size, i8* nocapture %ptr)
10 %B = bitcast i32* %A to i8*
11 call void @llvm.lifetime.start.p0i8(i64 2, i8* %B)
13 call void @llvm.lifetime.end.p0i8(i64 2, i8* %B)
17 define void @test2() {
21 %B = getelementptr {i8, i16}, {i8, i16}* %A, i32 0, i32 0
22 call void @llvm.lifetime.start.p0i8(i64 2, i8* %B)
23 store {i8, i16} zeroinitializer, {i8, i16}* %A
24 call void @llvm.lifetime.end.p0i8(i64 2, i8* %B)