gh-148211: decompose _SHUFFLE_3_LOAD_CONST_INLINE_BORROW in JIT (GH-148816)

This commit is contained in:
Neko Asakura
2026-04-28 20:48:23 +08:00
committed by GitHub
parent be968c7210
commit 2b6a13710f
7 changed files with 1029 additions and 1167 deletions
+4 -1
View File
@@ -2330,7 +2330,10 @@ dummy_func(void) {
goto error;
}
if (_Py_IsImmortal(temp)) {
ADD_OP(_SHUFFLE_3_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)temp);
ADD_OP(_SWAP, 2, 0);
optimize_pop_top(ctx, this_instr, null);
ADD_OP(_LOAD_CONST_INLINE_BORROW, 0, (uintptr_t)temp);
ADD_OP(_SWAP, 3, 0);
}
res = sym_new_const(ctx, temp);
Py_DECREF(temp);