about summary refs log tree commit diff
path: root/tests/codegen/array-equality.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-22 12:07:08 +0000
committerbors <bors@rust-lang.org>2024-02-22 12:07:08 +0000
commit1bb3a9f67a2ff6bd49c513ca1b8954237298c4b3 (patch)
treed92c6b8699c74c944191746f2583bf99f9a59acf /tests/codegen/array-equality.rs
parent52dba5ffe73c25951fd6ae38bf20513002dd7874 (diff)
parent0f4925e436abba349e8f70502c6911c62c6a7276 (diff)
downloadrust-1bb3a9f67a2ff6bd49c513ca1b8954237298c4b3.tar.gz
rust-1bb3a9f67a2ff6bd49c513ca1b8954237298c4b3.zip
Auto merge of #121309 - Nilstrieb:inline-all-the-fallbacks, r=oli-obk
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.

See the comments for more information.

r? oli-obk
Diffstat (limited to 'tests/codegen/array-equality.rs')
0 files changed, 0 insertions, 0 deletions