-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Optimization of _BINARY_OP_SUBSCR_DICT is wrong. #148210
Copy link
Copy link
Closed
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 errortype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
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 errortype-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
Projects
Status
Done
Bug report
Bug description:
If the inputs to
_BINARY_OP_SUBSCR_DICTare constant and the container is know to be a frozen dict, then_BINARY_OP_SUBSCR_DICTwill be "optimized" twice.Only one optimization should apply.
Introduced in 8e9d21c
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
_BINARY_OP_SUBSCR_DICTJIT optimization #148213