Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-109627: duplicated smalll exit blocks need to be assigned jump target labels#109630
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
miss-islington commentedSep 20, 2023
Thanks@iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
miss-islington commentedSep 20, 2023
Sorry,@iritkatriel, I could not cleanly backport this to |
…mp target labels (python#109630)(cherry picked from commit9ccf054)
…mp target labels (python#109630)(cherry picked from commit9ccf054)
GH-109632 is a backport of this pull request to the3.12 branch. |
GH-109632 is a backport of this pull request to the3.12 branch. |
Uh oh!
There was an error while loading.Please reload this page.
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.