Adapt SROA MIR opt for aggregated MIR#107687
Merged
bors merged 7 commits intorust-lang:masterfrom Feb 6, 2023
Merged
Conversation
Collaborator
|
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
Collaborator
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
oli-obk
approved these changes
Feb 6, 2023
| ) { | ||
| if lvalue.as_local().is_some() { | ||
| match rvalue { | ||
| // Aggregate assignments are expanded in run_pass. |
Contributor
There was a problem hiding this comment.
pre-existing, but what does this comment mean?
Contributor
Author
There was a problem hiding this comment.
Suggested change
| // Aggregate assignments are expanded in run_pass. | |
| // `replace_flattened_locals` will expand those statements into fields, | |
| // so we do not mark the lhs as non-splittable. |
Contributor
|
I feel more motivated to try to land some of my unpublished branches for MirPatch improvements, but the PR looks good @bors r+ |
Collaborator
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Feb 6, 2023
Rollup of 5 pull requests Successful merges: - rust-lang#107553 (Suggest std::ptr::null if literal 0 is given to a raw pointer function argument) - rust-lang#107580 (Recover from lifetimes with default lifetimes in generic args) - rust-lang#107669 (rustdoc: combine duplicate rules in ayu CSS) - rust-lang#107685 (Suggest adding a return type for async functions) - rust-lang#107687 (Adapt SROA MIR opt for aggregated MIR) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pass was broken by #107267.
This PR extends it to replace:
by assignment between locals
The improved pass runs to fixpoint, so we can flatten nested field accesses.