1 ; RUN: opt -S -passes=partial-inliner -skip-partial-inlining-cost-analysis < %s | FileCheck %s
3 %class.A = type { i32 }
4 @cond = local_unnamed_addr global i32 0, align 4
6 ; Function Attrs: uwtable
7 define void @_Z3foov() local_unnamed_addr {
9 %tmp = alloca %class.A, align 4
10 %tmp1 = alloca %class.A, align 4
11 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %tmp)
12 call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %tmp1)
13 %tmp4 = load i32, ptr @cond, align 4, !tbaa !2
14 %tmp5 = icmp eq i32 %tmp4, 0
15 br i1 %tmp5, label %bb6, label %bb7
18 call void @_ZN1A7memfuncEv(ptr nonnull %tmp)
21 bb7: ; preds = %bb6, %bb
22 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %tmp1)
23 call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %tmp)
27 ; Function Attrs: argmemonly nounwind
28 declare void @llvm.lifetime.start.p0(i64, ptr nocapture)
30 declare void @_ZN1A7memfuncEv(ptr) local_unnamed_addr
32 ; Function Attrs: argmemonly nounwind
33 declare void @llvm.lifetime.end.p0(i64, ptr nocapture)
35 ; Function Attrs: uwtable
36 define void @_Z3goov() local_unnamed_addr {
38 tail call void @_Z3foov()
42 ; CHECK-LABEL: define internal void @_Z3foov.1.
46 ; CHECK-NEXT: call void @llvm.lifetime.start.p0
47 ; CHECK-NEXT: call void @llvm.lifetime.start.p0
48 ; CHECK: call void @llvm.lifetime.end.p0
49 ; CHECK-NEXT: call void @llvm.lifetime.end.p0
50 ; CHECK-NEXT: br label {{.*}}exitStub
53 !llvm.module.flags = !{!0}
56 !0 = !{i32 1, !"wchar_size", i32 4}
57 !1 = !{!"clang version 5.0.0 (trunk 304489)"}
59 !3 = !{!"int", !4, i64 0}
60 !4 = !{!"omnipotent char", !5, i64 0}
61 !5 = !{!"Simple C++ TBAA"}