rust/compiler/rustc_codegen_ssa/src
Matthias Krüger c3cd05198a
Rollup merge of #113872 - nnethercote:tweak-cgu-sorting, r=pnkfelix
Tweak CGU sorting in a couple of places.

In `base.rs`, tweak how the CGU size interleaving works. Since #113777, it's much more common to have multiple CGUs with identical sizes. With the existing code these same-sized items ended up in the opposite-to-desired order due to the stable sorting. The code now starts with a reverse sort (like is done in `partitioning.rs`) which gives the behaviour we want. This doesn't matter much for perf, but makes profiles in `samply` look more like what we expect.

In `partitioning.rs`, we can use `sort_by_key` instead of `sort_by_cached_key` because `CGU::size_estimate()` is cheap. (There is an identical CGU sort earlier in that function that already uses `sort_by_key`.)

r? `@pnkfelix`
2023-07-27 06:04:12 +02:00
..
back Use a builder instead of boolean/option arguments 2023-07-25 13:51:15 +00:00
debuginfo refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
mir Monomorphize constants before inspecting them 2023-07-20 08:53:09 +00:00
traits Auto merge of #113892 - RalfJung:uninit-undef-poison, r=wesleywiser 2023-07-21 19:32:17 +00:00
base.rs Tweak CGU sorting in a couple of places. 2023-07-20 09:58:13 +10:00
codegen_attrs.rs Auto merge of #111836 - calebzulawski:target-feature-closure, r=workingjubilee 2023-07-23 00:16:03 +00:00
common.rs Promote unchecked_add/sub/mul/shl/shr to mir::BinOp 2023-06-19 01:47:03 -07:00
errors.rs remove redundant clones 2023-07-23 09:48:07 +02:00
glue.rs Use size_of_val instead of manual calculation 2023-03-17 19:55:49 -07:00
lib.rs Move coverageinfo::ffi and coverageinfo::map out of SSA 2023-07-05 20:40:40 +10:00
meth.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
mono_item.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
target_features.rs support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00