Skip to content

JIT: patch_aarch64_33rx relaxation does not optimize offsets > 1MB #142621

Description

@markshannon

The patch_aarch64_33rx relaxation only improves offsets <1MB.

If the offset is >1MB we can't save any instructions, but we can save the load from the data section.

Instead of:

adrp address of data holding value (hi bits)
ldr address of data holding value (lo bits)

we can get the value directly, as long as it is within 4GB

adrp value (hi bits)
add value (lo bits)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15pre-release feature fixes, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-JITtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions