]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-145692: Convert DEOPT_IFs to EXIT_IFs (GH-145751)
authorMark Shannon <Mark.Shannon@arm.com>
Thu, 12 Mar 2026 10:57:59 +0000 (10:57 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2026 10:57:59 +0000 (10:57 +0000)
commit453562a467a1f78a851ee12e7a556d1fe34f5a44
tree1870cf6b57e6cc02cccc6ba2e7af01785127430e
parent86a0756234df7ce42fa4731c91067cb7f2e244d5
GH-145692: Convert DEOPT_IFs to EXIT_IFs (GH-145751)

* Convert DEOPT_IFs to EXIT_IFs for guards. Keep DEOPT_IF for intentional drops to the interpreter.

* Modify BINARY_OP_SUBSCR_LIST_INT and STORE_SUBSCR_LIST_INT to handle negative indices, to keep EXIT_IFs and DEOPT_IFs in different uops
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_ids.h
Include/internal/pycore_uop_metadata.h
Modules/_testinternalcapi/test_cases.c.h
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer_cases.c.h