about summary refs log tree commit diff
path: root/tests/codegen/array-equality.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-02-19 18:57:27 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-02-19 19:25:20 +0100
commit0f4925e436abba349e8f70502c6911c62c6a7276 (patch)
treead375cf4f9dd41cf17db7db959708136622203ac /tests/codegen/array-equality.rs
parente29a1530f670d66f617f7aac8601920a87263ac6 (diff)
downloadrust-0f4925e436abba349e8f70502c6911c62c6a7276.tar.gz
rust-0f4925e436abba349e8f70502c6911c62c6a7276.zip
Make intrinsic fallback bodies cross-crate inlineable
This change was prompted by the stage1 compiler spending 4% of its time
when compiling the polymorphic-recursion MIR opt test in `unlikely`.

Intrinsic fallback bodies like `unlikely` should always be inlined, it's
very silly if they are not. To do this, we enable the fallback bodies to
be cross-crate inlineable. Not that this matters for our workloads since
the compiler never actually _uses_ the "fallback bodies", it just uses
whatever was cfg(bootstrap)ped, so I've also added `#[inline]` to those.
Diffstat (limited to 'tests/codegen/array-equality.rs')
0 files changed, 0 insertions, 0 deletions