diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-14 16:02:32 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-17 08:44:48 +1000 |
| commit | edd1f3827e06aa042fdf424a6908c670ac81f819 (patch) | |
| tree | 938d08e13baa3739874e4e3628382eb3a0c5ebfb /compiler/rustc_codegen_llvm/src | |
| parent | b52f9eb6cabeb681d91bcfca44507721b71314aa (diff) | |
| download | rust-edd1f3827e06aa042fdf424a6908c670ac81f819.tar.gz rust-edd1f3827e06aa042fdf424a6908c670ac81f819.zip | |
Store item size estimate in `MonoItemData`.
This means we call `MonoItem::size_estimate` (which involves a query) less often: just once per mono item, and then once more per inline item placement. After that we can reuse the stored value as necessary. This means `CodegenUnit::compute_size_estimate` is cheaper.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
