Skip to content
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

Eliminate empty or unreachable basic blocks #27

Open
dibyendumajumdar opened this issue Jul 9, 2020 · 0 comments
Open

Eliminate empty or unreachable basic blocks #27

dibyendumajumdar opened this issue Jul 9, 2020 · 0 comments

Comments

@dibyendumajumdar
Copy link
Owner

Simple version - if a block has no predecessors and is not the starting block then we can delete it.

@dibyendumajumdar dibyendumajumdar changed the title Eliminate empty basic blocks Eliminate empty or unreachable basic blocks Jul 25, 2020
dibyendumajumdar added a commit that referenced this issue Jul 25, 2020
…decessors. We get such blocks when there are multiple labels and gotos in the code.

We do not currently handle the scenario where the block has predecessor but is still unreachable from ENTRY block.
dibyendumajumdar added a commit that referenced this issue Jul 26, 2020
dibyendumajumdar added a commit that referenced this issue Jul 26, 2020
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

No branches or pull requests

1 participant