Skip to content

Commit 28508ff

Browse files
committed
gh-131798: JIT: replace _LOAD_SMALL_INT with _LOAD_SMALL_INT
Signed-off-by: Manjusaka <me@manjusaka.me>
1 parent c740fe3 commit 28508ff

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
@@ -529,6 +529,7 @@ dummy_func(void) {
529529

530530
op(_LOAD_SMALL_INT, (-- value)) {
531531
PyObject *val = PyLong_FromLong(this_instr->oparg);
532+
REPLACE_OP(this_instr, _LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)val);
532533
value = sym_new_const(ctx, val);
533534
}
534535

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)