-
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
Use function pointers instead of macro-unrolled loops in rustc_query_impl #101785
Conversation
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 8d113ae658eec2feb3a5be0a782eabbfacfb0f2b with merge 98f9eb27dc66cd8fc5cc582c9e65d58a407ed646... |
☀️ Try build successful - checks-actions |
Queued 98f9eb27dc66cd8fc5cc582c9e65d58a407ed646 with parent 17cbdfd, future comparison URL. |
Finished benchmarking commit (98f9eb27dc66cd8fc5cc582c9e65d58a407ed646): comparison URL. Overall result: no relevant changes - 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 benchmark run did not return any relevant results for this metric. 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.
CyclesThis benchmark run did not return any relevant results for this metric. Footnotes |
df4c1c0
to
ef6752e
Compare
…impl By making these standalone functions, we a) allow making them extensible in the future with a new `QueryStruct` b) greatly decrease the amount of code in each individual function, avoiding exponential blowup in llvm
ef6752e
to
7a83690
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (3288d3a): 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.
Footnotes |
The pre-merge perf run had no significant results, and the post-merge one has only a few significant results, with the improvements slightly outweighing the regressions. @rustbot label: +perf-regression-triaged |
By making these standalone functions, we
a) allow making them extensible in the future with a new
QueryStruct
b) greatly decrease the amount of code in each individual function, avoiding exponential blowup in llvm
Helps with #96524. Based on #101173; only the last commit is relevant.
r? @cjgillot