Skip to content

Commit d307c03

Browse files
committed
Generate SET_IP after each instr
1 parent c23fef4 commit d307c03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/optimizer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,10 @@ translate_bytecode_to_trace(
424424
}
425425
}
426426
instr++;
427+
ADD_TO_TRACE(SET_IP, instr - (_Py_CODEUNIT *)code->co_code_adaptive);
427428
}
428429
done:
429430
if (trace_length > 0) {
430-
int ip_offset = instr - (_Py_CODEUNIT *)code->co_code_adaptive;
431-
ADD_TO_TRACE(SET_IP, ip_offset);
432431
ADD_TO_TRACE(EXIT_TRACE, 0);
433432
}
434433
return trace_length;

0 commit comments

Comments
 (0)