Some GlobalCtxt/Session cleanups - #161332
Conversation
To `QuerySystem`, next to `query_vtables`. It's a better spot for it.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some `GlobalCtxt`/`Session` cleanups
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (269c121): comparison URL. Overall result: ❌ regressions - please read:Benchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeResults (secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 456.919s -> 458.093s (0.26%) |
|
Gee whiz, doing |
a5315fa to
2872fd6
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Some `GlobalCtxt`/`Session` cleanups
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (aeb7e24): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)Results (primary 1.8%, secondary -7.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 456.919s -> 456.535s (-0.08%) |
|
|
|
LLM disclosure: the suggestions for these changes came from an LLM's analysis. I made all the code and text changes myself. |
|
Yeah, these all look good. r=me with or without my suggested comment. |
This commit moves the eight cache fields in `GlobalCtxt` into a single type, just to provide some logical grouping and to reduce the number of fields within `GlobalCtxt`.
It makes sense next to `QuerySystem::side_effects`, and this enables the use of `DepNodeIndex` for the values instead of the type-erased `u32`.
2872fd6 to
c55f5a3
Compare
|
@bors r=Zalathar |
|
Perf ended up neutral after backing out the regressions. @bors rollup=maybe |
…anups, r=Zalathar Some `GlobalCtxt`/`Session` cleanups Details in individual commits. r? @Zalathar
…uwer Rollup of 16 pull requests Successful merges: - #159071 ([PAC] Encoder and hash (1/8)) - #161277 (bootstrap: Move all non-module items out of the crate root) - #161332 (Some `GlobalCtxt`/`Session` cleanups) - #161344 (Update the `rustc-perf` submodule) - #150931 (rustdoc: Always document `#[repr(transparent)]` if `#[rustc_pub_transparent]` is applied) - #160582 (Add `remove hidden_glob_reexports item breaks downstream` test) - #160876 (remove unwrap from write_mir_fn_graphviz) - #160927 (Enhance EII UI tests) - #161070 (fix arm homogeneous aggregate ABI) - #161236 (Download auto jobs in citool in parallel) - #161254 (Reserve capacity for 3% anon nodes) - #161283 (Tighten the language used for documenting `TargetOptions::llvm_abiname`) - #161291 (Rename `ProjectionPredicate` and `TraitPredicate`) - #161299 (Remove a bunch of unnecessary explicit lifetimes) - #161307 (make ARM maintainers pingable) - #161308 (Add regression test for rustc diagnostic to recognize variables in match guards)
…anups, r=Zalathar Some `GlobalCtxt`/`Session` cleanups Details in individual commits. r? @Zalathar
…uwer Rollup of 16 pull requests Successful merges: - #159071 ([PAC] Encoder and hash (1/8)) - #161068 (Ensure TLS accesses don't call the global allocator through panic (part 3) ) - #161332 (Some `GlobalCtxt`/`Session` cleanups) - #161344 (Update the `rustc-perf` submodule) - #150931 (rustdoc: Always document `#[repr(transparent)]` if `#[rustc_pub_transparent]` is applied) - #160582 (Add `remove hidden_glob_reexports item breaks downstream` test) - #160876 (remove unwrap from write_mir_fn_graphviz) - #160927 (Enhance EII UI tests) - #161070 (fix arm homogeneous aggregate ABI) - #161236 (Download auto jobs in citool in parallel) - #161254 (Reserve capacity for 3% anon nodes) - #161283 (Tighten the language used for documenting `TargetOptions::llvm_abiname`) - #161291 (Rename `ProjectionPredicate` and `TraitPredicate`) - #161299 (Remove a bunch of unnecessary explicit lifetimes) - #161307 (make ARM maintainers pingable) - #161308 (Add regression test for rustc diagnostic to recognize variables in match guards)
…anups, r=Zalathar Some `GlobalCtxt`/`Session` cleanups Details in individual commits. r? @Zalathar
View all comments
Details in individual commits.
r? @Zalathar