diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-31 14:42:54 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-05-31 21:53:31 +1000 |
| commit | cc21d9aa522cf07148e154ce9aec5f5f7a67c86c (patch) | |
| tree | da5d54bb9a9b61573086a780a19b96b75c22340c /compiler/rustc_codegen_llvm | |
| parent | e29821ff85a2a3000d226f99f62f89464028d5d6 (diff) | |
| download | rust-cc21d9aa522cf07148e154ce9aec5f5f7a67c86c.tar.gz rust-cc21d9aa522cf07148e154ce9aec5f5f7a67c86c.zip | |
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions
