Skip to content

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

Closed

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

Activity

  1. Dotnet-GitSync-Bot commented on Apr 17, 2020

    @Dotnet-GitSync-Bot
    Collaborator

    I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.

  2. added
    untriaged
    on Apr 17, 2020
  3. added
    area-CodeGen-coreclr
    on Apr 17, 2020
  4. added this to the Future milestone on Apr 20, 2020
  5. removed
    untriaged
    on Apr 20, 2020
  6. added
    JitUntriaged
    on Oct 28, 2020
  7. modified the milestones: Future, 6.0.0 on Nov 9, 2020
  8. removed
    JitUntriaged
    on Nov 9, 2020
  9. modified the milestones: 6.0.0, Future on Mar 23, 2021
  10. ghost added
    in-pr
    on Apr 6, 2023
  11. ghost removed
    in-pr
    on Apr 8, 2023
  12. ghost locked as resolved and limited conversation to collaborators on May 9, 2023
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

    arch-arm64area-CodeGen-coreclr

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions