brintos

brintos / llvm-project-archived public Read only

0
0
Text · 692 B · fd4644d Raw
38 lines · plain
1define void @globalfunc1() {2entry:3  call void @trampoline()4  ret void5}6; Adds an artificial level in the call graph to reduce the importing threshold7define void @trampoline() {8entry:9  call void @largefunction()10  ret void11}12 13define void @globalfunc2() {14entry:15  call void @largefunction()16  ret void17}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 void30}31 32define internal void @staticfunc2() {33entry:34  ret void35}36 37 38