Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher committed Aug 8, 2024
1 parent a5bdc9f commit 94c9308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,6 @@ translate_bytecode_to_trace(
uint32_t opcode = instr->op.code;
uint32_t oparg = instr->op.arg;

/* Special case the first instruction,
* so that we can guarantee forward progress */
if (!first && instr == initial_instr) {
// We have looped around to the start:
RESERVE(1);
Expand All @@ -615,6 +613,8 @@ translate_bytecode_to_trace(
RESERVE_RAW(2, "_CHECK_VALIDITY_AND_SET_IP");
ADD_TO_TRACE(_CHECK_VALIDITY_AND_SET_IP, 0, (uintptr_t)instr, target);

/* Special case the first instruction,
* so that we can guarantee forward progress */
if (first && progress_needed) {
assert(first);
if (OPCODE_HAS_EXIT(opcode) || OPCODE_HAS_DEOPT(opcode)) {
Expand Down

0 comments on commit 94c9308

Please sign in to comment.