]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958...
authormpage <mpage@meta.com>
Thu, 5 Jun 2025 20:06:51 +0000 (13:06 -0700)
committerGitHub <noreply@github.com>
Thu, 5 Jun 2025 20:06:51 +0000 (13:06 -0700)
commitbe2f32e60f3291a7cb6164ab05fe9e0460ab8131
tree0c7c054a2ed6205815fe44ac846ae778b9ed4c6e
parent945af60f047088ab35b48e411d545cbf9111e576
[3.14] gh-134889: Fix handling of a few opcodes when optimizing `LOAD_FAST` (#134958) (#135187)

We were incorrectly handling a few opcodes that leave their operands on the stack. Treat all of these conservatively; assume that they always leave operands on the stack.

(cherry picked from commit 6b77af257c25d31f1f137e477cb23e63692ddf29)
Include/internal/pycore_magic_number.h
Lib/test/test_dis.py
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-30-18-09-54.gh-issue-134889.Ic9UM-.rst [new file with mode: 0644]
Python/flowgraph.c