diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-02-03 15:54:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 15:54:51 (GMT) |
commit | ff6948b1286c854ee77dfc0b23b9d828b36873e4 (patch) | |
tree | 803da480fe804b2b2fe41f5041959ef49ded304b /Python | |
parent | a77de58108a89ada49a3af7613e84df436fd147c (diff) | |
download | cpython-ff6948b1286c854ee77dfc0b23b9d828b36873e4.zip cpython-ff6948b1286c854ee77dfc0b23b9d828b36873e4.tar.gz cpython-ff6948b1286c854ee77dfc0b23b9d828b36873e4.tar.bz2 |
bpo-45773: Remove invalid peephole optimizations (GH-31066)
(cherry picked from commit e0433c1e70254d4d0357a9e14596929a04bdf769)
Co-authored-by: Brandt Bucher <brandt@python.org>
Diffstat (limited to 'Python')
-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 3eb34d8..a7f62bb 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7449,7 +7449,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; @@ -7457,7 +7456,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; |