Skip to content

gh-95922: compiler's eliminate_empty_basic_blocks ignores the last block of the compilation unit#95924

Merged
iritkatriel merged 3 commits intopython:mainfrom
iritkatriel:gh-95922
Aug 12, 2022
Merged

gh-95922: compiler's eliminate_empty_basic_blocks ignores the last block of the compilation unit#95924
iritkatriel merged 3 commits intopython:mainfrom
iritkatriel:gh-95922

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Aug 12, 2022

Python/compile.c Outdated
}
}
for (basicblock *b = entryblock; b != NULL; b = b->b_next) {
assert(b->b_iused > 0);
Copy link
Member Author

Choose a reason for hiding this comment

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

This assertion currently fails on main.

@iritkatriel iritkatriel self-assigned this Aug 12, 2022
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.

compiler's eliminate_empty_basic_blocks does not remove empty block if it is the last in the compilation unit

3 participants