[New-bugs-announce] [issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump
Irit Katriel
report at bugs.python.org
Fri Apr 1 07:48:57 EDT 2022
New submission from Irit Katriel <iritkatriel at gmail.com>:
It would help issue47120 to reduce the number of jump opcodes.
The exception matching opcodes JUMP_IF_NOT_EXC_MATCH and JUMP_IF_NOT_EG_MATCH are not hot, and we can split them into a check + ordinary jump.
For JUMP_IF_NOT_EXC_MATCH this is simple because the stack effect is the same for the jump and non-jump case. For JUMP_IF_NOT_EG_MATCH the stack effect will need to be made the same, and the opcodes emitted around it adapted.
----------
assignee: iritkatriel
components: Interpreter Core
messages: 416484
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47186>
_______________________________________
More information about the New-bugs-announce
mailing list