8000 GH-135904: Optimize the JIT's assembly control flow by brandtbucher · Pull Request #135905 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-135904: Optimize the JIT's assembly control flow #135905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jun 27, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup
  • Loading branch information
brandtbucher committed Jun 25, 2025
commit b6da4e6a13a42e88c5c3a1da0d8e9b56f1c1282a
3 changes: 3 additions & 0 deletions Tools/jit/_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ class OptimizerAArch64(Optimizer): # pylint: disable = too-few-public-methods

# TODO: @diegorusso
_alignment = 8
# https://developer.arm.com/documentation/ddi0602/2025-03/Base-Instructions/B--Branch-
_re_jump = re.compile(r"\s*b\s+(?P<target>[\w.]+)")


Expand All @@ -297,7 +298,9 @@ class OptimizerX86(Optimizer): # pylint: disable = too-few-public-methods
_re_branch = re.compile(
rf"\s*(?P<instruction>{'|'.join(_X86_BRANCHES)})\s+(?P<target>[\w.]+)"
)
# https://www.felixcloutier.com/x86/jmp
_re_jump = re.compile(r"\s*jmp\s+(?P<target>[\w.]+)")
# https://www.felixcloutier.com/x86/ret
_re_return = re.compile(r"\s*ret\b")


Expand Down
Loading
0