|
op(_GUARD_TOS_ANY_SET, (tos -- tos)) { |
|
if (sym_matches_type(tos, &PySet_Type) || |
|
sym_matches_type(tos, &PyFrozenSet_Type)) |
|
{ |
|
ADD_OP(_NOP, 0, 0); |
|
} |
|
} |
The optimizer should narrow the symbolic type so that
subsequent instructions can benefit from the known type. The fix would be to add
sym_set_type(tos, tp) consistent with
_GUARD_TOS_ANY_DICT.
Linked PRs
cpython/Python/optimizer_bytecodes.c
Lines 1374 to 1380 in 9b22261
The optimizer should narrow the symbolic type so that
subsequent instructions can benefit from the known type. The fix would be to add
sym_set_type(tos, tp) consistent with
_GUARD_TOS_ANY_DICT.Linked PRs