[issue41323] Perform "peephole" optimization directly on control-flow graph.

Mark Shannon report at bugs.python.org
Fri Jul 17 06:27:02 EDT 2020


New submission from Mark Shannon <mark at hotpy.org>:

Currently we perform various bytecode improvements as a pass on the code objects after generating the code object.

This requires parsing the bytecode to find instructions, recreating the CFG, and rewriting the line number table.

If we perform the optimizations directly on the CFG we can avoid all that additional work.

This would save hundreds of lines of code and avoid coupling the optimization to the line number table format.

----------
assignee: Mark.Shannon
messages: 373811
nosy: Mark.Shannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Perform "peephole" optimization directly on control-flow graph.
type: performance

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41323>
_______________________________________


More information about the Python-bugs-list mailing list