• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -inline -attributor-cgscc -tailcallelim -S %s | FileCheck %s
2;
3; CHECK: define void @foo()
4; CHECK: declare i32 @baz()
5; CHECK-NOT: void @goo()
6; CHECK-NOT: void @bar()
7
8define void @foo() {
9  call fastcc void @bar()
10  ret void
11}
12
13define internal fastcc void @goo() {
14  call fastcc void @bar()
15  ret void
16}
17
18define 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
22
23if.then:
24  call fastcc void @goo()
25  br label %if.end
26
27if.end:
28  ret void
29}
30
31declare i32 @baz()
32