-
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
Perform SimplifyLocals before ConstProp. #105323
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 188cf4001097ba58feedb4fd396ee1412b6a1bb6 with merge b7447ffcd791c86d0621a163caf0d6d11bbf3e65... |
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (b7447ffcd791c86d0621a163caf0d6d11bbf3e65): 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)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. |
188cf40
to
83aceff
Compare
This comment has been minimized.
This comment has been minimized.
r? compiler |
This comment was marked as resolved.
This comment was marked as resolved.
547852d
to
6d6fee7
Compare
This comment has been minimized.
This comment has been minimized.
It's cheap and does not change anything.
6d6fee7
to
a48127f
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (b1691f6): 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.
|
Regression appears to not be noise (at least in serde-derive). The previous perf run didn't show that regression, so I wonder if there were perhaps changes made after it, @cjgillot, that may have led to a regression were there wasn't one before? |
I saw commentary about this in the t-compiler meeting today. I have seen fluctuations of almost exactly that magnitude in serde_derive opt+full. The syn opt+full benchmark has a pretty incredible significance threshold, and I think whatever instability is driving that is bleeding into serde_derive. |
This last change is the last data point there -- it seems pretty clearly outside the normal fluctuation range. I don't see corresponding negative changes, so I think it's not just instability that settles back to net-zero after some time. |
MIR before
ConstProp
may have a lot of dead writes, this makesConstProp
do unnecessary work.r? @ghost