Skip to content

JIT: Consider reordering loads on ARM64 to make them amenable to ldp optimization #92756

Closed as not planned

Description

@jakobbotsch

E.g. see the "after" codegen in #92710 (comment). It shouldn't be hard to add an optimization during lowering that tries to reorder related stores like this to make them amenable to the ldp peephole.

cc @dotnet/jit-contrib

Activity

  1. ghost added
    area-CodeGen-coreclr
    on Sep 28, 2023
  2. ghost added
    untriaged
    on Sep 28, 2023
  3. added this to the 9.0.0 milestone on Sep 28, 2023
  4. removed
    untriaged
    on Sep 28, 2023
  5. modified the milestones: 9.0.0, Future on Sep 28, 2023
  6. BruceForstall commented on Sep 28, 2023

    @BruceForstall
    Contributor

    Or maybe the ldr=>ldp peephole could look back more than one instruction? The trick would be to avoid throughput problems.

  7. jakobbotsch commented on Sep 28, 2023

    @jakobbotsch
    MemberAuthor

    Or maybe the ldr=>ldp peephole could look back more than one instruction? The trick would be to avoid throughput problems.

    We also need some interference checking on instrDescs to do that (ensuring the register hasn't changed values and the def can be moved back)... we would also need to be able to change the past ldr instrDesc which I think we had some trouble with (current approach is to remove it and reinsert the ldp, I believe).

  8. jakobbotsch commented on Oct 6, 2023

    @jakobbotsch
    MemberAuthor

    Duplicate of #64815

  9. ghost locked as resolved and limited conversation to collaborators on Nov 6, 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

    area-CodeGen-coreclr

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions