-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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-102860: improve performance of compiler's instr_sequence_to_cfg #102861
gh-102860: improve performance of compiler's instr_sequence_to_cfg #102861
Conversation
🤖 New build scheduled with the buildbot fleet by @iritkatriel for commit 4a84199 🤖 If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
if (HAS_TARGET(opcode)) { | ||
int offset = seq->s_labelmap[oparg]; | ||
assert(offset >= 0 && offset < seq->s_used); | ||
int lbl = offset2lbl[offset]; | ||
assert(lbl >= 0 && lbl < seq->s_labelmap_size); | ||
oparg = lbl; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is required now because we only call cfg_builder_use_label
for the one canonical label for an offset, rather than for every label? So we have to ensure we use the canonical label for jump targets also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly.
Fixes #102860.