Skip to content

ARM64-SVE: Don't assume MOVPRFX #107134

Open

Description

@a74nh

See here and the following comments.

LSRA will always delay free operands for a RMW operand embedded in a conditional select. One reason for this is to ensure the generated instruction does not use the destination register in other operations. This is because the architecture will not allow this if the instruction is prefixed by a MOVPRFX.

LSRA should instead determine if a MOVPRFX will be used and avoid delay freeing if possible.

Activity

  1. ghost added
    needs-area-label
    on Aug 29, 2024
  2. added
    untriaged
    on Aug 29, 2024
  3. added
    area-CodeGen-coreclr
    Priority:3
    and removed
    untriaged
    on Aug 29, 2024
  4. dotnet-policy-service commented on Aug 29, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  5. added this to the 10.0.0 milestone on Aug 29, 2024
  6. added
    arm-sve
    and removed
    needs-area-label
    on Aug 29, 2024
  7. kunalspathak commented on Sep 20, 2024

    @kunalspathak
    Contributor

    movprfx happens at the codegen time, but we could add hints in the intrinsic table to call out which instructions can have movprfx and then LSRA can use that information to decide if it should delay free or not.

  8. kunalspathak commented on Sep 20, 2024

    @kunalspathak
    Contributor

    We will see if there are any examples where we produce sub-optimal code and then prioritize this item.

  9. added
    Priority:2
    and removed
    Priority:3
    on Oct 8, 2024
  10. a74nh commented on May 16, 2025

    @a74nh
    ContributorAuthor

    #115508 will move this logic in the emitter.
    I'm not sure if that makes this issue easier or harder.

  11. self-assigned this
    on May 22, 2025
  12. modified the milestones: 10.0.0, 11.0.0 on Jul 7, 2025
  13. JulieLeeMSFT commented on Jul 7, 2025

    @JulieLeeMSFT
    Member

    Moved to .NET 11.

  14. a74nh commented on Jul 17, 2025

    @a74nh
    ContributorAuthor

    Let's do #115508 first before tackling this.

  15. a74nh commented on Jul 16, 2026

    @a74nh
    ContributorAuthor

    Let's do #115508 first before tackling this.

    That issue is complete now. We can now look at this issue.

    Performance -> Moving to future

  16. modified the milestones: 11.0.0, Future on Jul 16, 2026
  17. modified the milestones: Future, 12.0.0 on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority:2arch-arm64area-CodeGen-coreclrarm-sve

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions