Change `JUMP_TO_TOP` to a more general backwards jump for tier 2. · Issue #117062 · python/cpython · GitHub
Skip to content

Change JUMP_TO_TOP to a more general backwards jump for tier 2. #117062

Description

@markshannon

Currently we have the _JUMP_TO_TOP uop which jumps to the second uop in the tier 2 trace, as the first is reserved for _START_EXECUTOR.
Since this is a bit of an odd special case, we might as well add a more general jump backward.
Doing so would have a few advantages:

  • It is less confusing
  • It would actually simplify the JIT a bit
  • It would allow loop invariant code motion for looping traces.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions