-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Move ty::print methods to Drop-based scope guards #94062
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
6c71b86
to
9763486
Compare
cc @antoyo and @bjorn3 on the codegen_gcc/cranelift changes (highfive didn't poke because I r'd ghost initially) @bors try @rust-timer queue after moving to a macro -- shouldn't really matter for codegen perf, though. r? rust-lang/compiler Overall the perf improvement for bootstrap time here is pretty significant -- 3 seconds is a good chunk. The regression is IMO not significant enough (and pretty likely to be just optimizer noise) to block this PR from moving ahead. |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 9763486 with merge 9052094ca5c51a6d68127658c18be082df1893b9... |
☀️ Try build successful - checks-actions |
Queued 9052094ca5c51a6d68127658c18be082df1893b9 with parent 75d9a0a, future comparison URL. |
Finished benchmarking commit (9052094ca5c51a6d68127658c18be082df1893b9): comparison url. Summary: This benchmark run shows 13 relevant improvements 🎉 but 9 relevant regressions 😿 to instruction counts.
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 |
This comment was marked as resolved.
This comment was marked as resolved.
@bors r+ How did you find this? Did it show up in cachegrind dumps? |
📌 Commit 9763486 has been approved by |
No, cachegrind isn't really the right tool for tracing back to source code from LLVM IR. I'm looking at no-prepopulate-passes LLVM IR from rustc_query_impl and trying to identify duplicated work based on that (e.g., places where we're generating a lot of IR for no good reason). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The gcc part looks good to me.
☀️ Test successful - checks-actions |
Finished benchmarking commit (523a1b1): comparison url. Summary: This benchmark run did not return any relevant results. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Primary goal is reducing codegen of the TLS access for each closure, which shaves ~3 seconds of bootstrap time over rustc as a whole.