]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135474: Specialize arithmetic only on compact ints (GH-135479)
authorKen Jin <kenjin@python.org>
Sat, 14 Jun 2025 09:13:32 +0000 (17:13 +0800)
committerGitHub <noreply@github.com>
Sat, 14 Jun 2025 09:13:32 +0000 (17:13 +0800)
commit7b15873ed00766ef6760048449f44ea0e41f4a12
tree2466044a07e12fc3f7d26d3da97618edd37b569b
parentc8319a3fea9ff7f9b49008be3b5d681112bbe7f3
gh-135474: Specialize arithmetic only on compact ints (GH-135479)

Specialize arithmetic only on compact ints. This also makes int operations non-escaping in the JIT and in tier 1.
12 files changed:
Doc/howto/perf_profiling.rst
Include/internal/pycore_long.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_metadata.h
Misc/NEWS.d/next/Core_and_Builtins/2025-06-13-16-05-24.gh-issue-135474.67nOl3.rst [new file with mode: 0644]
Objects/longobject.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h
Tools/cases_generator/analyzer.py