]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107557: Remove unnecessary SAVE_IP instructions (#108583)
authorGuido van Rossum <guido@python.org>
Tue, 29 Aug 2023 16:51:51 +0000 (09:51 -0700)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 16:51:51 +0000 (16:51 +0000)
commit4f22152713d008cdd7c1d373a0f0c8dcf30e217e
tree08f63460bafae50b2d93b5c14a1ab59a4ae82491
parent83e191ba7627cbcb06cebcc0a020b847f271ca59
gh-107557: Remove unnecessary SAVE_IP instructions (#108583)

Also remove NOP instructions.

The "stubs" are not optimized in this fashion (their SAVE_IP should always be preserved since it's where to jump next, and they don't contain NOPs by their nature).
Include/internal/pycore_opcode_metadata.h
Python/optimizer.c
Tools/cases_generator/analysis.py
Tools/cases_generator/flags.py
Tools/cases_generator/generate_cases.py