Skip to content

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Oct 9, 2025

Implements #135904 for AArch64 to match the optimisation for x86.
Removes a number of unnecessary branches.

Removes a number of unnecessary branches.

Change-Id: I4965fe8d8b79f7d859ff9076d9c53f3ac7f094b2
@python-cla-bot
Copy link

python-cla-bot bot commented Oct 9, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@markshannon
Copy link
Member Author

It looks like there are three issues here:

  • The R_AARCH64_TSTBR14 relocation only allows a jump of 2**15 bytes, which is not enough for the JIT in debug mode. We could maybe workaround this, as it would be nice to have for the release build. But I think we can just drop support for optimising cbz and tbz instructions for now.
  • We don't have the symbol name for 19 bit relocations on Windows. This is an easy fix.
  • The llvm assembler is rejecting b.eq __JIT_ERROR_TARGET because "conditional branch requires assembler-local label", but the code is fine. This might be because the home-brew installed llvm is too old?

… Add Windows 19 bit jump relocation.

Change-Id: Ib15ce7ab0de315c4dc1f544d600ae669024a4a6d
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.

1 participant