-
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
Only enable ConstProp on opt level >= 1 #98961
Conversation
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
Fixes #98958 |
This comment has been minimized.
This comment has been minimized.
Thanks for doing this! Implementation looks good, only thing I'd suggest is running this on opt level 1 and above instead of 2. This is in line with what we currently do and const prop actually usually helps debug info I believe (see the r? @oli-obk as well If you're interested in some more things to do, following up on this by doing some deduplication between the lint and non-lint versions of this pass is definitely a good next step. There's also some good opportunities around adding support for not invalidating CFG caches to |
Thanks Jakob, changed to opt level 1. Will look into those 2 issues next. |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 728fb05 with merge 1099b7f9b713a844ae847af1c5268131abfa9745... |
☀️ Try build successful - checks-actions |
Queued 1099b7f9b713a844ae847af1c5268131abfa9745 with parent f342bea, future comparison URL. |
Current title is wrong, it should be >= 1, not == 2? |
Finished benchmarking commit (1099b7f9b713a844ae847af1c5268131abfa9745): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesThis benchmark run did not return any relevant results for this metric. 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 |
@bors r+ |
📌 Commit 728fb05 has been approved by |
Should I squash the commits or will it happen when the PR completes? |
Bors doesn't squash commits. Squashing is fine. I can re-approve it after you squash if you do it within the next 5 min or so. Otherwise keeping the commits separate is fine. |
There is no auto squash. |
that's fine, I'll leave it as is. I thought I had to squash it to complete the PR. |
Once a reviewer posts an r+ comment, your PR is added to the bors queue (https://bors.rust-lang.org/queue/rust) Bors takes the first PR in the queue, merges it into a side branch and once CI passes it merges into the master branch. This ensures that CI always passes for the master branch and there are no unintended interactions between PR's that are merged close to each other. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (db78ab7): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
r? @JakobDegen