File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11// Test that `-Zpgo-gen` creates expected instrumentation artifacts in LLVM IR.
2+ // Compiling with `-Cpanic=abort` because PGO+unwinding isn't supported on all platforms.
23
34// needs-profiler-support
4- // compile-flags: -Z pgo-gen -Ccodegen-units=1
5+ // compile-flags: -Z pgo-gen -Ccodegen-units=1 -Cpanic=abort
56
67// CHECK: @__llvm_profile_raw_version =
78// CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
89// CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_function{{.*}} = private global
9- // CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}main {{.*}} = private global
10- // CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}main {{.*}} = private global
10+ // CHECK: @__profc_{{.*}}pgo_instrumentation{{.*}}some_other_function {{.*}} = private global
11+ // CHECK: @__profd_{{.*}}pgo_instrumentation{{.*}}some_other_function {{.*}} = private global
1112// CHECK: @__llvm_profile_filename = {{.*}}"default_%m.profraw\00"{{.*}}
1213
14+ #![ crate_type="lib" ]
15+
1316#[ inline( never) ]
1417fn some_function ( ) {
1518
1619}
1720
18- fn main ( ) {
21+ pub fn some_other_function ( ) {
1922 some_function ( ) ;
2023}
You can’t perform that action at this time.
0 commit comments