-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 simple scalar replacement of aggregates (SROA) MIR opt #102570
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in compiler/rustc_codegen_gcc cc @antoyo |
I don’t see myself finding the resources to get to reviewing this any time soon. I was kinda hoping to but all sorts of things keep coming up. r? @rust-lang/wg-mir-opt |
r? mir-opt |
Please turn on this optimization in release mode so we can do a perf test and a crater run |
0f0e43a
to
7b36296
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit 7b36296ae89744037f9e407a004b4f46199005d7 with merge 015dbcea68b7642e2acc268b5c8f3e9086fc02ff... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (015dbcea68b7642e2acc268b5c8f3e9086fc02ff): 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. |
@craterbot run mode=build-and-test |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
@craterbot run mode=build-and-test crates=https://crater-reports.s3.amazonaws.com/pr-102570/retry-regressed-list.txt |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
⌛ Testing commit c0a6f49382ff3b9a25d7b27a2333ac7cf7164297 with merge fd098f068cff3f04ef6c067eee0beda9343ccedc... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
a18de70
to
779007d
Compare
Tweaked the test to avoid depending on panic=unwind/abort. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (79146ba): comparison URL. Overall result: ❌ regressions - 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
Perform simple scalar replacement of aggregates (SROA) MIR opt This is a re-open of rust-lang#85796 I copied the debuginfo implementation (first commit) from `@eddyb's` own SROA PR. This pass replaces plain field accesses by simple locals when possible. To be eligible, the replaced locals: - must not be enums or unions; - must not be used whole; - must not have their address taken. The storage and deinit statements are duplicated on each created local. cc `@tmiasko` who reviewed the former version of this PR.
Perform simple scalar replacement of aggregates (SROA) MIR opt This is a re-open of rust-lang#85796 I copied the debuginfo implementation (first commit) from `@eddyb's` own SROA PR. This pass replaces plain field accesses by simple locals when possible. To be eligible, the replaced locals: - must not be enums or unions; - must not be used whole; - must not have their address taken. The storage and deinit statements are duplicated on each created local. cc `@tmiasko` who reviewed the former version of this PR.
This is a re-open of #85796
I copied the debuginfo implementation (first commit) from @eddyb's own SROA PR.
This pass replaces plain field accesses by simple locals when possible.
To be eligible, the replaced locals:
The storage and deinit statements are duplicated on each created local.
cc @tmiasko who reviewed the former version of this PR.