Skip to content

Commit e0433c1

Browse files
authored
bpo-45773: Remove invalid peephole optimizations (GH-31066)
1 parent b4bd1e1 commit e0433c1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove two invalid "peephole" optimizations from the bytecode compiler.

Python/compile.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8757,15 +8757,13 @@ optimize_basic_block(struct compiler *c, basicblock *bb, PyObject *consts)
87578757
switch (target->i_opcode) {
87588758
case JUMP_ABSOLUTE:
87598759
case JUMP_FORWARD:
8760-
case JUMP_IF_FALSE_OR_POP:
87618760
i -= jump_thread(inst, target, POP_JUMP_IF_FALSE);
87628761
}
87638762
break;
87648763
case POP_JUMP_IF_TRUE:
87658764
switch (target->i_opcode) {
87668765
case JUMP_ABSOLUTE:
87678766
case JUMP_FORWARD:
8768-
case JUMP_IF_TRUE_OR_POP:
87698767
i -= jump_thread(inst, target, POP_JUMP_IF_TRUE);
87708768
}
87718769
break;

0 commit comments

Comments
 (0)