Skip to content

[MIR] Enhance the SimplifyCfg pass to merge consecutive blocks #29838

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

Closed
wants to merge 1 commit into from

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented Nov 14, 2015

// example in a switch, it will appear in the target's predecessor list multiple
// times. This allows to update the map more easily when modifying the graph.
pub struct PredecessorMap {
map: Vec<Vec<BasicBlock>>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, this pass only cares about how many predecessors a block has, not what those predecessors are. It would be simpler and more efficient to just store a Vec<usize>.

@bors
Copy link
Collaborator

bors commented Nov 30, 2015

☔ The latest upstream changes (presumably #29929) made this pull request unmergeable. Please resolve the merge conflicts.

@nikomatsakis
Copy link
Contributor

is this deprecated in favor of #30238? seems like it.

@nikomatsakis
Copy link
Contributor

I'm assuming yes, so I'll close for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants