Skip to content

Commit 16bd314

Browse files
Address review
1 parent ad5926e commit 16bd314

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Python/optimizer_analysis.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,6 @@ optimize_uops(
482482
_PyUOpInstruction *corresponding_check_stack = NULL;
483483

484484
_Py_uop_abstractcontext_init(ctx);
485-
486-
// Note: this must happen before frame_new, as it might override
487-
// the result should frame_new set things to bottom.
488-
ctx->done = false;
489-
ctx->out_of_space = false;
490-
ctx->contradiction = false;
491-
492485
_Py_UOpsAbstractFrame *frame = _Py_uop_frame_new(ctx, co, curr_stacklen, NULL, 0);
493486
if (frame == NULL) {
494487
return 0;

Python/optimizer_symbols.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,13 @@ _Py_uop_abstractcontext_init(JitOptContext *ctx)
888888

889889
// Frame setup
890890
ctx->curr_frame_depth = 0;
891+
892+
// Ctx signals.
893+
// Note: this must happen before frame_new, as it might override
894+
// the result should frame_new set things to bottom.
895+
ctx->done = false;
896+
ctx->out_of_space = false;
897+
ctx->contradiction = false;
891898
}
892899

893900
int

0 commit comments

Comments
 (0)