]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/pgo-indirect-call-promotion/filecheck-patterns.txt
Rollup merge of #97739 - a2aaron:let_underscore, r=estebank
[rust.git] / src / test / run-make-fulldeps / pgo-indirect-call-promotion / filecheck-patterns.txt
1 CHECK: 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.
5 CHECK: %{{.*}} = icmp eq {{void \(\)\*|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.
9 CHECK: call void @opaque_f1()
10
11
12 # Same checks as above, repeated for the trait object case
13
14 CHECK: define void @call_a_bunch_of_trait_methods({{.*}}
15 CHECK: %{{.*}} = icmp eq {{void \(\{\}\*\)\*|ptr}} %{{.*}}, {{.*}}@foo
16 CHECK: tail call void @opaque_f2()