-
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
Optimize const_prop
mir-opt by accessing local_decls
through ecx
#96281
Conversation
r? @jackh726 (rust-highfive has picked a reviewer for you, use r? to override) |
local_decls
through ecx
const_prop
mir-opt by accessing local_decls
through ecx
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 3d256b3 with merge b5da99ba9e80e1c12cd59707d9f2f96e3458b514... |
☀️ Try build successful - checks-actions |
Queued b5da99ba9e80e1c12cd59707d9f2f96e3458b514 with parent 3d3dafb, future comparison URL. |
Finished benchmarking commit (b5da99ba9e80e1c12cd59707d9f2f96e3458b514): 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 may lead 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 Footnotes |
It seems that the call of the methods would be less efficient, so I used references to avoid it. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit db23e77 with merge 0c2aa98a8ac3a9726039cc8b380470095e51e1de... |
☀️ Try build successful - checks-actions |
Queued 0c2aa98a8ac3a9726039cc8b380470095e51e1de with parent 41ef767, future comparison URL. |
Finished benchmarking commit (0c2aa98a8ac3a9726039cc8b380470095e51e1de): 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 may lead to changes in compiler perf. @bors rollup=never Footnotes |
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.
Nice!
@bors r+ |
📌 Commit db23e77 has been approved by |
r? @wesleywiser |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b21759f): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
From the FIXME in the impl of
ConstPropagator
. Accessinglocal_decls
andscource_scopes
fromecx
can reduceclone
calls and save compile time.Besides, according to #96213 , the FIXME about writing
layouts
toecx
in advance can also be removed.