-
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
Avoid unnecessary monomorphization of inline asm related functions #92731
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
7c17f98
to
a9733d1
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit a9733d1883d6253a6db716a6f8e73bb6e7b67217 with merge 2f5ac69469feb017b1eb5b3da1660ea337abf742... |
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.
Overall LGTM.
Feel free to r=me after fixing the nit or not, whichever you prefer.
This comment has been minimized.
This comment has been minimized.
d3664fc
to
93af944
Compare
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #90146) made this pull request unmergeable. Please resolve the merge conflicts. |
93af944
to
f7786ba
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit f7786bacf8c28bbe43a59a9f3972efea7f58552e with merge 64e9d90e5a7e30f7a50668a017f94cb647970d18... |
☀️ Try build successful - checks-actions |
Queued 64e9d90e5a7e30f7a50668a017f94cb647970d18 with parent 42852d7, future comparison URL. |
Finished benchmarking commit (64e9d90e5a7e30f7a50668a017f94cb647970d18): comparison url. Summary: This benchmark run did not return any relevant changes. 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 |
No perf changes and fixed the nit. @bors r=nagisa |
📌 Commit f7786bacf8c28bbe43a59a9f3972efea7f58552e has been approved by |
☔ The latest upstream changes (presumably #92970) made this pull request unmergeable. Please resolve the merge conflicts. |
This saves a couple of Symbol::intern calls
This avoids unnecessary monomorphizations in codegen backends
f7786ba
to
9336fe3
Compare
Rebased. The only conflict was in the list of pre-defined symbols. @bors r=nagisa |
📌 Commit 9336fe3 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (9ad5d82): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This saved about 200KB of 11MB (2%) for librustc_codegen_cranelift.so. It looks like it also saved a second or two of the cg_clif build time, but that one is pretty noisy anyway. |
This should reduce build time for codegen backends by avoiding duplicated monomorphization of certain inline asm related functions for each passed in closure type.