-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
gh-109627: duplicated smalll exit blocks need to be assigned jump target labels #109630
Conversation
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @iritkatriel, I could not cleanly backport this to |
…mp target labels (python#109630) (cherry picked from commit 9ccf054)
…mp target labels (python#109630) (cherry picked from commit 9ccf054)
GH-109632 is a backport of this pull request to the 3.12 branch. |
GH-109632 is a backport of this pull request to the 3.12 branch. |
Fixes #109627.
In order to ensure that function exits have a line number, the compiler duplicates small exit blocks which (1) do not have a line number in any instruction and (2) have more than one predecessor. Since these blocks are jump targets (at least one predecessor reaches this block via a jump or exception), they need to have labels assigned to them. This was missing, and is added in this PR.