mirror of
https://github.com/python/cpython.git
synced 2026-02-06 01:45:25 +00:00
gh-144007: Eliminate redundant refcounting in the JIT for BINARY_OP (GH-144011)
This commit is contained in:
parent
29f1e778fa
commit
4e10fa993a
11 changed files with 105 additions and 48 deletions
|
|
@ -211,7 +211,9 @@ dummy_func(void) {
|
|||
sym_set_type(left, &PyFloat_Type);
|
||||
}
|
||||
|
||||
op(_BINARY_OP, (lhs, rhs -- res)) {
|
||||
op(_BINARY_OP, (lhs, rhs -- res, l, r)) {
|
||||
l = lhs;
|
||||
r = rhs;
|
||||
REPLACE_OPCODE_IF_EVALUATES_PURE(lhs, rhs, res);
|
||||
bool lhs_int = sym_matches_type(lhs, &PyLong_Type);
|
||||
bool rhs_int = sym_matches_type(rhs, &PyLong_Type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue