diff options
author | Brandt Bucher <brandt@python.org> | 2022-02-03 10:14:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 10:14:44 (GMT) |
commit | e0433c1e70254d4d0357a9e14596929a04bdf769 (patch) | |
tree | e265580fff66d3ea4248b274e52cc23dd1644fbf /Python/compile.c | |
parent | b4bd1e1422997de61faf506b4916e83013bc7d21 (diff) | |
download | cpython-e0433c1e70254d4d0357a9e14596929a04bdf769.zip cpython-e0433c1e70254d4d0357a9e14596929a04bdf769.tar.gz cpython-e0433c1e70254d4d0357a9e14596929a04bdf769.tar.bz2 |
bpo-45773: Remove invalid peephole optimizations (GH-31066)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c index 1d2d567..cecd6a5 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -8757,7 +8757,6 @@ optimize_basic_block(struct compiler *c, basicblock *bb, PyObject *consts) switch (target->i_opcode) { case JUMP_ABSOLUTE: case JUMP_FORWARD: - case JUMP_IF_FALSE_OR_POP: i -= jump_thread(inst, target, POP_JUMP_IF_FALSE); } break; @@ -8765,7 +8764,6 @@ optimize_basic_block(struct compiler *c, basicblock *bb, PyObject *consts) switch (target->i_opcode) { case JUMP_ABSOLUTE: case JUMP_FORWARD: - case JUMP_IF_TRUE_OR_POP: i -= jump_thread(inst, target, POP_JUMP_IF_TRUE); } break; |