1*cee313d2SEric Christopher; RUN: opt < %s -skip-partial-inlining-cost-analysis -partial-inliner -S  | FileCheck %s
2*cee313d2SEric Christopher; RUN: opt < %s -skip-partial-inlining-cost-analysis -passes=partial-inliner -S  | FileCheck %s
3*cee313d2SEric Christopher
4*cee313d2SEric Christopherdefine internal i32 @inlinedFunc(i1 %cond, i32* align 4 %align.val) {
5*cee313d2SEric Christopherentry:
6*cee313d2SEric Christopher  br i1 %cond, label %if.then, label %return
7*cee313d2SEric Christopherif.then:
8*cee313d2SEric Christopher  ; Dummy store to have more than 0 uses
9*cee313d2SEric Christopher  store i32 10, i32* %align.val, align 4
10*cee313d2SEric Christopher  br label %return
11*cee313d2SEric Christopherreturn:             ; preds = %entry
12*cee313d2SEric Christopher  ret i32 0
13*cee313d2SEric Christopher}
14*cee313d2SEric Christopher
15*cee313d2SEric Christopherdefine internal i32 @dummyCaller(i1 %cond, i32* align 2 %align.val) {
16*cee313d2SEric Christopherentry:
17*cee313d2SEric Christopher; CHECK-LABEL: @dummyCaller
18*cee313d2SEric Christopher; CHECK: br
19*cee313d2SEric Christopher; CHECK: call void @inlinedFunc.1.
20*cee313d2SEric Christopher  %val = call i32 @inlinedFunc(i1 %cond, i32* %align.val)
21*cee313d2SEric Christopher  ret i32 %val
22*cee313d2SEric Christopher}
23*cee313d2SEric Christopher
24