about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-14 16:02:32 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-17 08:44:48 +1000
commitedd1f3827e06aa042fdf424a6908c670ac81f819 (patch)
tree938d08e13baa3739874e4e3628382eb3a0c5ebfb /compiler/rustc_codegen_llvm/src
parentb52f9eb6cabeb681d91bcfca44507721b71314aa (diff)
downloadrust-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