rust/compiler/rustc_monomorphize/src
Nicholas Nethercote cc21d9aa52 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.
2023-05-31 21:53:31 +10:00
..
collector.rs Don't compute inlining status of mono items in advance. 2023-05-31 21:53:31 +10:00
errors.rs errors: generate typed identifiers in each crate 2023-02-22 09:15:53 +00:00
lib.rs Finish move of query.rs 2023-05-17 01:57:21 +02:00
partitioning.rs Don't compute inlining status of mono items in advance. 2023-05-31 21:53:31 +10:00
polymorphize.rs Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
util.rs EarlyBinder::new -> EarlyBinder::bind 2023-05-29 13:46:10 +02:00