Skip to content

gh-146297: Rewind optimizer when out of space#146298

Open
Fidget-Spinner wants to merge 1 commit intopython:mainfrom
Fidget-Spinner:do_not_jit_unopt
Open

gh-146297: Rewind optimizer when out of space#146298
Fidget-Spinner wants to merge 1 commit intopython:mainfrom
Fidget-Spinner:do_not_jit_unopt

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-Spinner Fidget-Spinner commented Mar 22, 2026

Comment on lines +545 to +551
while (curr->opcode != _SET_IP) {
if (!uop_buffer_rewind(&ctx->out_buffer)) {
// Reached the start.
return 0;
}
curr = uop_buffer_last(&ctx->out_buffer);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add and set ctx->last_set_ip_offset via _SET_IP instead of the current logic?

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.

3 participants