gh-87092: Make jump target label equal to the offset of the target in the instructions sequence by iritkatriel · Pull Request #102093 · python/cpython
Conversation
In the instruction stream exposed by the compiler to Python for testing, the labels are no longer included as explicit entries. Instead, the offset of the target instruction in the stream is used.
This is a step towards the codegen producing an instruction stream instead of basic blocks.
iritkatriel
changed the title
gh-87092: Jump target label is now the offset of the target in the instructions sequence
gh-87092: Make jump target label equal to the offset of the target in the instructions sequence
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is only for testing, I'll trust you that is a worthwhile change.
It looks correct.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters