-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
[perf experiment] Increase the Rust ABI by-value arg/return size limit from 2*usize to 3*usize. #93268
Conversation
r? @oli-obk (rust-highfive has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 3967fc6 with merge 929a3fb1b6d9a46a24879de882b85bfa1525d05e... |
☀️ Try build successful - checks-actions |
Queued 929a3fb1b6d9a46a24879de882b85bfa1525d05e with parent d2dc425, future comparison URL. |
Finished benchmarking commit (929a3fb1b6d9a46a24879de882b85bfa1525d05e): comparison url. Summary: This change led to very large relevant mixed results 🤷 in compiler performance.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 led 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 |
It's literally only The compiler seems to build faster across the board, which I'm not extremely surprised about - after all, that's where I got the idea in the first place. But it's not as big as I was hoping. I'll close this but leave the branch around if anyone else wants to poke around at it. |
(I had planned to try this as a regression fix for #93259, before the perf run for that came out neutral - but I've thought of it before, and this is one of those things I can never figure out if it's been tried and rejected)
In the interest of not changing the optimization behavior, I've left in the existing behavior of turning
<= 2*usize
aggregates into a singleiN
, even when it might not be ideal.Not sure how to test this outside of using the compiler as a benchmark, but I suppose that's at least a start.