Skip to content

gh-107901: compiler replaces POP_BLOCK instruction by NOPs before optimisations #114530

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

Merged
merged 9 commits into from
Jan 25, 2024

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jan 24, 2024

The POP_BLOCK are not needed once the exception handlers are attached to each instruction, so we can replace them by NOPs before optimisation. (The block push instruction are still needed for reachability analysis).

@iritkatriel iritkatriel changed the title gh-107901: compiler replaces POP_BLOCK instruction by NOPs before optimisations gh-114265: compiler replaces POP_BLOCK instruction by NOPs before optimisations Jan 24, 2024
@iritkatriel iritkatriel marked this pull request as draft January 24, 2024 19:37
@iritkatriel
Copy link
Member Author

Converted to draft - I think we should merged #114535 and then this one becomes simpler.

@iritkatriel iritkatriel changed the title gh-114265: compiler replaces POP_BLOCK instruction by NOPs before optimisations gh-107901: compiler replaces POP_BLOCK instruction by NOPs before optimisations Jan 25, 2024
@iritkatriel iritkatriel marked this pull request as ready for review January 25, 2024 13:58
@iritkatriel iritkatriel merged commit ac5e53e into python:main Jan 25, 2024
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants