Skip to content

ARM64: Optimize pair of "str reg, [reg]" to stp #35133

Closed

Description

@kunalspathak
str     x13, [x12]
str     x14, [x12,#8]

can be combined into stp if the stores are happening in subsequent memory.

stp x13, x14, [x12]

I collected no. of such str pairs in framework libraries and found approx. 1000 pairs in 400 methods.

Details:

str_str_x_to_stp.txt

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

Activity

  1. added
    untriaged
    on Apr 17, 2020
  2. added
    area-CodeGen-coreclr
    and removed on Apr 17, 2020
  3. added this to the Future milestone on Apr 20, 2020
  4. removed
    untriaged
    on Apr 20, 2020
  5. added
    JitUntriaged
    on Oct 28, 2020
  6. modified the milestones: Future, 6.0.0 on Nov 9, 2020
  7. removed
    JitUntriaged
    on Nov 9, 2020
  8. modified the milestones: 6.0.0, Future on Mar 23, 2021
  9. ghost added
    in-pr
    on Mar 30, 2023
  10. ghost removed
    in-pr
    on Mar 31, 2023
  11. kunalspathak commented on Apr 27, 2023

    @kunalspathak
    ContributorAuthor

    Fixed in #85032

  12. ghost locked as resolved and limited conversation to collaborators on May 27, 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