mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-142764: Restore REPLACE_OPCODE_IF_EVALUATES_PURE optimization for some ops (GH-143335)
This commit is contained in:
parent
e0fb278064
commit
95259116ec
9 changed files with 1554 additions and 994 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue