-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-JITtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
cpython/Python/optimizer_bytecodes.c
Lines 1374 to 1380 in 9b22261
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-JITtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error