-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only use dense bitsets in dataflow analyses #116152
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Experiment: only use dense bitsets r? `@ghost`
☀️ Try build successful - checks-actions |
1 similar comment
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (b5f969f): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 632.116s -> 629.721s (-0.38%) |
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
cc @nnethercote who introduced the chunked bitsets in #93984 |
#93984 (comment) is the best comment about why I introduced these. In short, it was mostly about reducing peak memory usage, and so all metrics should be considered. Having said that, interestingly the results here don't look like the inverse of #93984. In #93984 I measured a few crates outside of rustc-perf: http-0.2.6, rust-language-tags-0.3.2, tinyvec-1.5.1, vte-0.10.1. It would be worth measuring them too (or updated versions) along with keccak. If the perf results are good, it would be a nice win for simplicity if |
Looking closer to the massif and dhat profiles, the analyses using a New version, only changing the liveness analyses, not initializedness. |
This comment has been minimized.
This comment has been minimized.
Only use dense bitsets in dataflow analyses r? `@ghost`
☀️ Try build successful - checks-actions |
Finished benchmarking commit (dba968f): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 630.239s -> 631.272s (0.16%) |
r? @nnethercote For the cases that use |
Only use dense bitsets in dataflow analyses When a dataflow state has the size close to the number of locals, we should prefer a dense bitset, like we already store locals in a dense vector. Other occurrences of `ChunkedBitSet` need to be justified by the size of the dataflow state.
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
@bors r=nnethercote |
Only use dense bitsets in dataflow analyses When a dataflow state has the size close to the number of locals, we should prefer a dense bitset, like we already store locals in a dense vector. Other occurrences of `ChunkedBitSet` need to be justified by the size of the dataflow state.
💥 Test timed out |
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (0e42435): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 663.309s -> 661.891s (-0.21%) |
When a dataflow state has the size close to the number of locals, we should prefer a dense bitset, like we already store locals in a dense vector.
Other occurrences of
ChunkedBitSet
need to be justified by the size of the dataflow state.