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