1 ; RUN: opt -passes=mem2reg -S -o - < %s | FileCheck %s
3 declare void @llvm.lifetime.start.p0(i64 %size, ptr nocapture %ptr)
4 declare void @llvm.lifetime.end.p0(i64 %size, ptr nocapture %ptr)
10 call void @llvm.lifetime.start.p0(i64 2, ptr %A)
12 call void @llvm.lifetime.end.p0(i64 2, ptr %A)
16 define void @test2() {
20 %B = getelementptr {i8, i16}, ptr %A, i32 0, i32 0
21 call void @llvm.lifetime.start.p0(i64 2, ptr %B)
22 store {i8, i16} zeroinitializer, ptr %A
23 call void @llvm.lifetime.end.p0(i64 2, ptr %B)