1 define void @globalfunc1() { 2 entry: 3 call void @trampoline() 4 ret void 5 } 6 ; Adds an artificial level in the call graph to reduce the importing threshold 7 define void @trampoline() { 8 entry: 9 call void @largefunction() 10 ret void 11 } 12 13 define void @globalfunc2() { 14 entry: 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. 22 define 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 32 define internal void @staticfunc2() { 33 entry: 34 ret void 35 } 36 37 38