Skip to content

Commit 0dfd1fe

Browse files
committed
Constant merging isn't needed for anything already created
1 parent 60e1e10 commit 0dfd1fe

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Python/optimizer_bytecodes.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ dummy_func(void) {
8484
value = GETLOCAL(oparg);
8585
if (sym_is_const(value)) {
8686
PyObject *val = sym_get_const(value);
87-
if (merge_const(refs, &val) < 0) {
88-
goto error;
89-
}
9087
int opcode = _Py_IsImmortal(val) ? _LOAD_CONST_INLINE_BORROW : _LOAD_CONST_INLINE;
9188
REPLACE_OP(this_instr, opcode, 0, (uintptr_t)val);
9289
}
@@ -534,9 +531,6 @@ dummy_func(void) {
534531
op(_COPY, (bottom, unused[oparg-1] -- bottom, unused[oparg-1], top)) {
535532
if (sym_is_const(bottom)) {
536533
PyObject *value = sym_get_const(bottom);
537-
if (merge_const(refs, &value) < 0) {
538-
goto error;
539-
}
540534
int opcode = _Py_IsImmortal(value) ? _LOAD_CONST_INLINE_BORROW : _LOAD_CONST_INLINE;
541535
REPLACE_OP(this_instr, opcode, 0, (uintptr_t)value);
542536
}

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)