Skip to content

summarize_stats.py: add pairs by opcode#31957

Merged
markshannon merged 2 commits intopython:mainfrom
sweeneyde:pairs_by_opcode
Mar 18, 2022
Merged

summarize_stats.py: add pairs by opcode#31957
markshannon merged 2 commits intopython:mainfrom
sweeneyde:pairs_by_opcode

Conversation

@sweeneyde
Copy link
Copy Markdown
Member

@sweeneyde sweeneyde commented Mar 17, 2022

Example output here: https://gist.github.com/sweeneyde/e80111c909e6c629771d6e941e525e8a

@markshannon, I think this can be useful when examining/optimizing a particular opcode: we see what kinds of opcodes follow and precede, and potentially catch examples of one opcode that can be completely rolled into another.

@markshannon
Copy link
Copy Markdown
Member

I like it.
Could you sort the instructions alphabetically? Otherwise it is hard to find a particular instruction.

@sweeneyde
Copy link
Copy Markdown
Member Author

Done. Updated sorted-by-opname results are here: https://gist.github.com/sweeneyde/b698aad58cfe55aaae0a863c05046891

@markshannon
Copy link
Copy Markdown
Member

Thanks

@markshannon markshannon merged commit d7a93cb into python:main Mar 18, 2022
@sweeneyde sweeneyde deleted the pairs_by_opcode branch March 19, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants