fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
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 void ()* %{{.*}}, @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 void ({}*)* %{{.*}}, {{.*}} @foo 16CHECK: tail call void @opaque_f2()