Automatically enable cross-crate inlining for small functions
This commit is contained in:
parent
09df6108c8
commit
33b0e4be06
67 changed files with 434 additions and 344 deletions
|
@ -15,7 +15,8 @@ pub extern "C" fn exported() {
|
|||
|
||||
// CHECK-LABEL: ; target_cpu_on_functions::not_exported
|
||||
// CHECK-NEXT: ; Function Attrs:
|
||||
// CHECK-NEXT: define {{.*}}() {{.*}} #0
|
||||
// CHECK-NEXT: define {{.*}}() {{.*}} #1
|
||||
#[inline(never)]
|
||||
fn not_exported() {}
|
||||
|
||||
// CHECK: attributes #0 = {{.*}} "target-cpu"="{{.*}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue