-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Improve AdtDef
interning.
#94733
Improve AdtDef
interning.
#94733
Conversation
Since @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 535c26fa26876bf6305d840b65b83a780b8d9128 with merge 97e4e12bccb6d65473261eb5813514d27e23a42f... |
☀️ Try build successful - checks-actions |
Queued 97e4e12bccb6d65473261eb5813514d27e23a42f with parent d2710db, future comparison URL. |
These interning changes are neat. |
Finished benchmarking commit (97e4e12bccb6d65473261eb5813514d27e23a42f): comparison url. Summary: This benchmark run shows 17 relevant improvements 🎉 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. @bors rollup=never |
a8bddb7
to
c0ca82f
Compare
I have fixed the conflicts. I also introduced |
This comment has been minimized.
This comment has been minimized.
This commit makes `AdtDef` use `Interned`. Much the commit is tedious changes to introduce getter functions. The interesting changes are in `compiler/rustc_middle/src/ty/adt.rs`.
c0ca82f
to
ca5525d
Compare
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.
LGTM, Thanks!
@bors r+ |
📌 Commit ca5525d has been approved by |
⌛ Testing commit ca5525d with merge b0b618a6a8003ad7d8f573e7f20bfa790fc079b6... |
💔 Test failed - checks-actions |
@bors retry apple builder vanished |
☀️ Test successful - checks-actions |
Tested on commit rust-lang/rust@012720f. Direct link to PR: <rust-lang/rust#94733> 💔 miri on windows: test-fail → build-fail (cc @eddyb @RalfJung @oli-obk). 💔 miri on linux: test-fail → build-fail (cc @eddyb @RalfJung @oli-obk).
Finished benchmarking commit (012720f): comparison url. Summary: This benchmark run shows 30 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This commit makes
AdtDef
useInterned
. Much of the commit is tediouschanges to introduce getter functions. The interesting changes are in
compiler/rustc_middle/src/ty/adt.rs
.r? @fee1-dead