]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131798: JIT: Narrow the return type of _CALL_LEN to int (#132940)
authorDiego Russo <diego.russo@arm.com>
Fri, 25 Apr 2025 18:57:42 +0000 (19:57 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Apr 2025 18:57:42 +0000 (02:57 +0800)
commit4c20f46fa011df57190cc19b21bafde1f65e73a7
treedb49f24d3d6d165b75b043ba14c8d2a5d8d2b442
parentf0485de43ad7403bb74824f445d2cf1f3d192904
gh-131798: JIT: Narrow the return type of _CALL_LEN to int (#132940)

Reduce unnecessary guards whenever `len()` is called and used
after.

Co-authored-by: Max Bernstein <tekknolagi@gmail.com>
Lib/test/test_capi/test_opt.py
Misc/NEWS.d/next/Core_and_Builtins/2025-04-25-14-56-45.gh-issue-131798.NpcKub.rst [new file with mode: 0644]
Python/optimizer_bytecodes.c
Python/optimizer_cases.c.h