• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1define void @globalfunc1() {
2entry:
3  call void @trampoline()
4  ret void
5}
6; Adds an artificial level in the call graph to reduce the importing threshold
7define void @trampoline() {
8entry:
9  call void @largefunction()
10  ret void
11}
12
13define void @globalfunc2() {
14entry:
15  call void @largefunction()
16  ret void
17}
18
19
20; Size is 5: if two layers below in the call graph the threshold will be 4,
21; but if only one layer below the threshold will be 7.
22define void @largefunction() {
23  entry:
24  call void @staticfunc2()
25  call void @staticfunc2()
26  call void @staticfunc2()
27  call void @staticfunc2()
28  call void @staticfunc2()
29  ret void
30}
31
32define internal void @staticfunc2() {
33entry:
34  ret void
35}
36
37
38