Skip to content

GH-145692: Convert DEOPT_IFs to EXIT_IFs#145751

Open
markshannon wants to merge 1 commit intopython:mainfrom
markshannon:convert-deopts-to-exits
Open

GH-145692: Convert DEOPT_IFs to EXIT_IFs#145751
markshannon wants to merge 1 commit intopython:mainfrom
markshannon:convert-deopts-to-exits

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Mar 10, 2026

This PR, in theory, allows more code to be jitted.
EXIT_IF branches to a side exit, allowing it to be jitted once it has warmed up, where DEOPT_IF always exits to the interpreter.

In practice this doesn't seem to make much difference, but it does unblock other work to jit more code.
Performance is generally neutral, less than 1% faster or slower across 5 different platforms.

@markshannon markshannon changed the title GH-145692: Convert DEOPT_IFs to EXIT_IFs. GH-145692: Convert DEOPT_IFs to EXIT_IFs Mar 10, 2026
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.

1 participant