Skip to content

Commit 97dbcce

Browse files
committed
Turn _REPLACE_WITH_TRUE into _POP_TOP_LOAD_CONST_INLINE_BORROW
1 parent e0ad739 commit 97dbcce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Python/optimizer_bytecodes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ dummy_func(void) {
913913
}
914914

915915
op(_REPLACE_WITH_TRUE, (value -- res)) {
916+
REPLACE_OP(this_instr, _POP_TOP_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)&Py_True);
916917
res = sym_new_const(ctx, Py_True);
917918
}
918919

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)