-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Merge impl_polarity
and impl_trait_ref
queries
#120919
Conversation
rustbot has assigned @michaelwoerister. Use r? to explicitly pick a reviewer |
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
Merge `impl_polarity` and `impl_trait_ref` queries Hopefully this is perf neutral. I wan to finish rust-lang#120835 and stop using the HIR in `coherent_trait`, which should then give us a perf improvement.
☀️ Try build successful - checks-actions |
@rust-timer build a711662 |
Finished benchmarking commit (a711662): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking 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 Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 665.965s -> 664.862s (-0.17%) |
The few regressions we have all seem to be in metadata decoding. There are more improvements than regressions tho, so this seems good? I'll give the regressions another go tho, I may have forgotten to remove an impl_polarity call where we already call impl_trait_header |
All regressions are on a single benchmark (bitmaps), and there is a lot of improvements, so I'd go with it. |
Some more review of the regressions:
|
I'll review this on monday r? compiler-errors |
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.
Do we have tests for unsafe impl Inherent
being denied? r=me after fixing up the nits though.
1ce3522
to
74c9dff
Compare
yes https://github.com/rust-lang/rust/blob/master/tests/ui/error-codes/E0197.rs @bors r=compiler-errors |
☀️ Test successful - checks-actions |
Finished benchmarking commit (d26b417): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 663.087s -> 662.665s (-0.06%) |
A net win overall, especially for icounts and binary size. @rustbot label: +perf-regression-triaged |
Hopefully this is perf neutral. I want to finish #120835 and stop using the HIR in
coherent_trait
, which should then give us a perf improvement.