diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-08 08:19:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-08 08:19:19 +0100 |
| commit | d16c55d6f608848231314151648b38b424f9297f (patch) | |
| tree | ea32bd60e7f2adf42a1fd86af55f1b1b1121a6cc /compiler/rustc_codegen_llvm/src | |
| parent | f586a793846de57f4781b90542b7e26953f5cfab (diff) | |
| parent | cc38c1e9cb75d12f41cfda3317867759ab895b20 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
