-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Mark Location::caller() as #[inline] #95619
Conversation
This function gets compiled to a single register move as it actually gets it's return value passed in as argument.
r? @scottmcm (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 6d0b61e with merge da29afd45000f8726fab74f84fed8e1d0fab5ed6... |
☀️ Try build successful - checks-actions |
Queued da29afd45000f8726fab74f84fed8e1d0fab5ed6 with parent 168a020, future comparison URL. |
Finished benchmarking commit (da29afd45000f8726fab74f84fed8e1d0fab5ed6): comparison url. Summary:
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. @bors rollup=never Footnotes |
Inlining a function with a non-monomorphized-looking signature seems perfectly reasonable to me. @bors r+ |
📌 Commit 6d0b61e has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (596dece): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
I think this broke the ui/rfc-2091-track-caller/intrinsic-wrapper.rs test with cg_clif for some reason:
https://github.com/bjorn3/rustc_codegen_cranelift/runs/5831236628?check_suite_focus=true |
…r, r=compiler-errors Revert "Mark Location::caller() as #[inline]" This reverts rust-lang#95619. As noted in rust-lang#95619 (comment) this seems to break several tests with cg_clif.
…iler-errors Revert "Mark Location::caller() as #[inline]" This reverts rust-lang/rust#95619. As noted in rust-lang/rust#95619 (comment) this seems to break several tests with cg_clif.
This function gets compiled to a single register move as it actually gets it's return value passed in as argument.