1 ; RUN: opt -passes=inline,attributor-cgscc,tailcallelim -S %s | FileCheck %s
3 ; CHECK: define void @foo()
4 ; CHECK: declare i32 @baz()
5 ; CHECK-NOT: void @goo()
6 ; CHECK-NOT: void @bar()
9 call fastcc void @bar()
13 define internal fastcc void @goo() {
14 call fastcc void @bar()
18 define internal fastcc void @bar() {
19 %call = call i32 @baz()
20 %cond = icmp eq i32 %call, 0
21 br i1 %cond, label %if.then, label %if.end
24 call fastcc void @goo()