-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks #33552
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #33425) made this pull request unmergeable. Please resolve the merge conflicts. |
|
||
while mir.basic_block_data(target).statements.is_empty() { | ||
// NB -- terminator may have been swapped with `None` | ||
// below, in which case we have a cycle and just want |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think the below
here became above. Could just say in the function merge_consecutive_blocks
instead.
LGTM! 👍 r=me on rebase |
} | ||
} | ||
|
||
pub fn build_predecessor_map(mir: &Mir) -> PredecessorMap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: to me it seems like it ought to be a PredecessorMap::from_mir
or something.
Rebased and nits addressed. @bors r=luqmana |
📌 Commit 1ebb07e has been approved by |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 1ebb07e has been approved by |
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks Updated from rust-lang#30238, including the changes suggested by @Aatch.
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks Updated from rust-lang#30238, including the changes suggested by @Aatch.
@bors r=luqmana |
📌 Commit 8ad6d27 has been approved by |
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks Updated from rust-lang#30238, including the changes suggested by @Aatch.
[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks Updated from rust-lang#30238, including the changes suggested by @Aatch.
Updated from #30238, including the changes suggested by @Aatch.