fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
598 B16 linesraw
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()