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

Don't compute inlining status of mono items in advance. #112128

Merged
merged 1 commit into from
Jun 1, 2023

Commits on May 31, 2023

  1. Don't compute inlining status of mono items in advance.

    We record inlining status for mono items in `MonoItems`, and then
    transfer it to `InliningMap`, for later use in
    `InliningMap::with_inlining_candidates`.
    
    But we can just compute inlining status directly in
    `InliningMap::with_inlining_candidates`, because the mono item is right
    there. There's no need to compute it in advance.
    
    This commit changes the code to do that, removing the need for
    `MonoItems` and `InliningMap::inlines`. This does result in more calls
    to `instantiation_mode` (one per static occurrence) but the performance
    effect is negligible.
    nnethercote committed May 31, 2023
    Configuration menu
    Copy the full SHA
    cc21d9a View commit details
    Browse the repository at this point in the history