Skip to content

Commit 9910b65

Browse files
Turn off optimizer for real, trace through init
1 parent cbb3ad2 commit 9910b65

File tree

3 files changed

+9
-436
lines changed

3 files changed

+9
-436
lines changed

Python/optimizer.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,8 @@ _PyJIT_translate_single_bytecode_to_trace(
597597
// TODO handle extended args.
598598
oparg > 255 || opcode == EXTENDED_ARG ||
599599
opcode == WITH_EXCEPT_START || opcode == RERAISE || opcode == CLEANUP_THROW || opcode == PUSH_EXC_INFO ||
600-
frame->owner >= FRAME_OWNED_BY_INTERPRETER ||
601-
// This can be supported, but requires a tracing shim frame.
602-
opcode == CALL_ALLOC_AND_ENTER_INIT) {
600+
frame->owner >= FRAME_OWNED_BY_INTERPRETER
601+
) {
603602
unsupported:
604603
{
605604
// Rewind to previous instruction and replace with _EXIT_TRACE.

Python/optimizer_analysis.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,13 @@ _Py_uop_analyze_and_optimize(
528528
{
529529
OPT_STAT_INC(optimizer_attempts);
530530

531-
int err = optimize_uops(
532-
initial_func, buffer,
533-
length, curr_stacklen, dependencies);
534-
535-
if (err == 0) {
536-
return err;
537-
}
531+
// int err = optimize_uops(
532+
// initial_func, buffer,
533+
// length, curr_stacklen, dependencies);
534+
//
535+
// if (err == 0) {
536+
// return err;
537+
// }
538538

539539
assert(length > 0);
540540

0 commit comments

Comments
 (0)