fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1CHECK: define void @call_a_bunch_of_functions({{.*}} { 2 3# Make sure that indirect call promotion inserted a check against the most 4# frequently called function. 5CHECK: %{{.*}} = icmp eq ptr %{{.*}}, @function_called_always 6 7# Check that the call to `function_called_always` was inlined, so that we 8# directly call `opaque_f1` from the upstream crate. 9CHECK: call void @opaque_f1() 10 11 12# Same checks as above, repeated for the trait object case 13 14CHECK: define void @call_a_bunch_of_trait_methods({{.*}} 15CHECK: %{{.*}} = icmp eq ptr %{{.*}}, {{.*}}@foo 16CHECK: tail call void @opaque_f2()