Skip to content

Commit 9b7b864

Browse files
simplify check
1 parent 00f7818 commit 9b7b864

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ dummy_func(void) {
524524
}
525525

526526
op(_POP_TOP_FLOAT, (value -- )) {
527-
if (PyJitRef_IsBorrowed(value) ||
528-
sym_is_immortal(PyJitRef_Unwrap(value)) ||
529-
sym_is_null(value)) {
527+
if (PyJitRef_IsBorrowed(value)) {
530528
REPLACE_OP(this_instr, _POP_TOP_NOP, 0, 0);
531529
}
532530
}

Python/optimizer_cases.c.h

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)