Skip to content

Add UOp Pair counts to pystats #115178

@JeffersGlass

Description

@JeffersGlass

Feature or enhancement

Proposal:

Add a new section to the stats produced by --enable-pystats, which keeps track of the pairs, triples, and longer sequences in which UOps appear. This will be useful for analyzing candidate pairs for condensing into a single superinstruction, as well as other kinds of optimization.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

This came up in the context of exploring superinstructions for the Copy and Patch JIT at faster-cpython/ideas#647.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions