Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make intrinsic fallback bodies cross-crate inlineable #121309

Merged
merged 1 commit into from
Feb 22, 2024

Commits on Feb 19, 2024

  1. 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.
    Noratrieb committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    0f4925e View commit details
    Browse the repository at this point in the history