about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-08 08:19:19 +0100
committerGitHub <noreply@github.com>2024-03-08 08:19:19 +0100
commitd16c55d6f608848231314151648b38b424f9297f (patch)
treeea32bd60e7f2adf42a1fd86af55f1b1b1121a6cc /compiler/rustc_codegen_llvm/src/builder.rs
parentf586a793846de57f4781b90542b7e26953f5cfab (diff)
parentcc38c1e9cb75d12f41cfda3317867759ab895b20 (diff)
downloadrust-d16c55d6f608848231314151648b38b424f9297f.tar.gz
rust-d16c55d6f608848231314151648b38b424f9297f.zip
Rollup merge of #122099 - Urgau:btreemap-inline-new, r=Amanieu
Add  `#[inline]` to `BTreeMap::new` constructor

This PR add the `#[inline]` attribute to `BTreeMap::new` constructor as to make it eligible for inlining.

<details>

For some context: I was profiling `rustc --check-cfg` with callgrind and due to the way we currently setup all the targets and we end-up calling `BTreeMap::new` multiple times for (nearly) all the targets. Adding the `#[inline]` attribute reduced the number of instructions needed.

</details>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions