-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[BOLT] Use CDSort and CDSplit #119418
[BOLT] Use CDSort and CDSplit #119418
Conversation
CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
CC @Kobzol |
Hi! I already tried I think that we'd need to bump our LLVM version for this, as it's 17.0.4 currently, and that doesn't know about |
Interesting, do you have a link with perf stats? We observed some improvements on large binaries in icache and itlb misses.
CDSplit is separate from cdsort and could be beneficial with hfsort+.
Sorry about not checking the LLVM version used. CDSplit is also very recent and was only upstreamed a month ago. If you don't use trunk BOLT, it will probably be in the next release. |
I think that we have talked about this on Discord 😅 The previous attempt was this commit, the results are here. There were a few cycles wins, nothing too big though. We could switch to |
Looking at the results again, there were some nice max RSS improvements, and bootstrap time was also improved by 5s, which isn't trivial. Maybe I was too harsh to |
I would suggest to first try only |
We do need trunk (or LLVM 18 rc) BOLT for CDSplit. |
I would suggest waiting for LLVM 18 RC, and then we can try both options. |
r? @Kobzol |
I think it'd also require PassWrapper changes from nikic@be8c330 |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
[BOLT] Use CDSort and CDSplit CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (4bd76ed): 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.
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: 670.527s -> 667.725s (-0.42%) |
A slight LLVM/ @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (9023f90): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. 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: 671.684s -> 667.951s (-0.56%) |
CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).