Skip to content

_GUARD_TOS_ANY_SET missing sym_set_type after NOP optimization #145214

@corona10

Description

@corona10

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

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions