summaryrefslogtreecommitdiffstats
path: root/Python/flowgraph.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2025-01-20 17:09:23 (GMT)
committerGitHub <noreply@github.com>2025-01-20 17:09:23 (GMT)
commitab61d3f4303d14a413bc9ae6557c730ffdf7579e (patch)
treeec35e41ce467f4cb281208970cf453a680d82aed /Python/flowgraph.c
parent0a6412f9cc9e694e76299cfbd73ec969b7d47af6 (diff)
downloadcpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.zip
cpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.tar.gz
cpython-ab61d3f4303d14a413bc9ae6557c730ffdf7579e.tar.bz2
GH-128914: Remove conditional stack effects from `bytecodes.c` and the code generators (GH-128918)
Diffstat (limited to 'Python/flowgraph.c')
-rw-r--r--Python/flowgraph.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/flowgraph.c b/Python/flowgraph.c
index 24561c1..3f8d9db 100644
--- a/Python/flowgraph.c
+++ b/Python/flowgraph.c
@@ -1836,12 +1836,6 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
INSTR_SET_OP0(inst, NOP);
}
break;
- case LOAD_GLOBAL:
- if (nextop == PUSH_NULL && (oparg & 1) == 0) {
- INSTR_SET_OP1(inst, LOAD_GLOBAL, oparg | 1);
- INSTR_SET_OP0(&bb->b_instr[i + 1], NOP);
- }
- break;
case COMPARE_OP:
if (nextop == TO_BOOL) {
INSTR_SET_OP0(inst, NOP);