1 ; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S | FileCheck %s
3 define i32 @Func(i1 %cond, ptr align 4 %align.val) !prof !1 {
4 ; CHECK: @Func({{.*}}) !prof [[REMAINCOUNT:![0-9]+]]
6 br i1 %cond, label %if.then, label %return
8 ; Dummy store to have more than 0 uses
9 store i32 10, ptr %align.val, align 4
11 return: ; preds = %entry
15 define internal i32 @Caller1(i1 %cond, ptr align 2 %align.val) !prof !3{
17 ; CHECK-LABEL: @Caller1
19 ; CHECK: call void @Func.1.
21 ; CHECK: call void @Func.1.
22 %val = call i32 @Func(i1 %cond, ptr %align.val)
23 %val2 = call i32 @Func(i1 %cond, ptr %align.val)
27 define internal i32 @Caller2(i1 %cond, ptr align 2 %align.val) !prof !2{
29 ; CHECK-LABEL: @Caller2
31 ; CHECK: call void @Func.1.
32 %val = call i32 @Func(i1 %cond, ptr %align.val)
36 ; CHECK: [[REMAINCOUNT]] = !{!"function_entry_count", i64 150}
37 !1 = !{!"function_entry_count", i64 200}
38 !2 = !{!"function_entry_count", i64 10}
39 !3 = !{!"function_entry_count", i64 20}