mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
gh-134584: Eliminate redundant refcounting from _COMPARE_OP_X (GH-143186)
This commit is contained in:
parent
d3d4cf9432
commit
b3f2d80569
9 changed files with 775 additions and 788 deletions
|
|
@ -466,14 +466,16 @@ dummy_func(void) {
|
|||
r = right;
|
||||
}
|
||||
|
||||
op(_COMPARE_OP_FLOAT, (left, right -- res)) {
|
||||
REPLACE_OPCODE_IF_EVALUATES_PURE(left, right);
|
||||
op(_COMPARE_OP_FLOAT, (left, right -- res, l, r)) {
|
||||
res = sym_new_type(ctx, &PyBool_Type);
|
||||
l = left;
|
||||
r = right;
|
||||
}
|
||||
|
||||
op(_COMPARE_OP_STR, (left, right -- res)) {
|
||||
REPLACE_OPCODE_IF_EVALUATES_PURE(left, right);
|
||||
op(_COMPARE_OP_STR, (left, right -- res, l, r)) {
|
||||
res = sym_new_type(ctx, &PyBool_Type);
|
||||
l = left;
|
||||
r = right;
|
||||
}
|
||||
|
||||
op(_IS_OP, (left, right -- b)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue