gh-142764: Restore REPLACE_OPCODE_IF_EVALUATES_PURE optimization for some ops (GH-143335)

This commit is contained in:
Ken Jin 2026-01-10 07:18:22 +08:00 committed by GitHub
parent e0fb278064
commit 95259116ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1554 additions and 994 deletions

View file

@ -5395,6 +5395,13 @@ dummy_func(
INPUTS_DEAD();
}
tier2 op(_INSERT_2_LOAD_CONST_INLINE_BORROW, (ptr/4, left, right -- res, l, r)) {
res = PyStackRef_FromPyObjectBorrow(ptr);
l = left;
r = right;
INPUTS_DEAD();
}
tier2 op(_SHUFFLE_2_LOAD_CONST_INLINE_BORROW, (ptr/4, callable, null, arg -- res, a)) {
res = PyStackRef_FromPyObjectBorrow(ptr);
a = arg;