bpo-45773: Remove invalid peephole optimizations (GH-31066)

(cherry picked from commit e0433c1e70)

Co-authored-by: Brandt Bucher <brandt@python.org>
This commit is contained in:
Miss Islington (bot) 2022-02-03 07:54:51 -08:00 committed by GitHub
parent a77de58108
commit ff6948b128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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;