Skip to content

ARM64: Optimize pair of "ldr reg, [reg]" to ldp #35132

@kunalspathak

Description

@kunalspathak
ldr     x1, [x19,#16]
ldr     x2, [x19,#24]

can be combined into ldp if the loads are happening from subsequent memory.

ldp x1, x2, [x19, #16]

I collected no. of such ldr pairs in framework libraries and found approx. 5900 pairs in 3500 methods.

Details:

ldr_ldr_x_to_ldp.txt

category:cq
theme:optimization
skill-level:intermediate
cost:small
impact:medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions