Skip to content

Enable and optimize LSRA with APX push2/pop2 #114560

Closed

Description

@anthonycanino

APX allows to push/pop two registers from the stack with new push2 and pop2 instructions. This task is to enable this feature in the register allocator and tune/optimize.

Activity

  1. added
    apx
    on Apr 11, 2025
  2. ghost added
    area-CodeGen-coreclr
    on Apr 11, 2025
  3. added
    untriaged
    on Apr 11, 2025
  4. dotnet-policy-service commented on Apr 11, 2025

    @dotnet-policy-service
    Contributor

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

  5. removed
    untriaged
    on Apr 15, 2025
  6. added this to the 10.0.0 milestone on Apr 15, 2025
  7. DeepakRajendrakumaran commented on May 13, 2025

    @DeepakRajendrakumaran
    Contributor

    @BruceForstall @kunalspathak @jakobbotsch I have been working on adding push2/pop2 support in JIT. We already have an issue tracking unwind changes at OS level(#112762). While we wait on that, I plan to go ahead and use push2/pop2 in Prolog/Eplilog with existing unwind code. For e.g., for push working on reg1 and reg2, this will look as follows.

                    instGen_Push2Pop2(INS_push2, reg1, reg2);
                    compiler->unwindPush(reg1);
                    compiler->unwindPush(reg2);
    

    Adding the comment here so that I can make any other changes required to handle this if others have any input here

  8. anthonycanino commented on Jul 8, 2025

    @anthonycanino
    ContributorAuthor

    @JulieLeeMSFT this is completed with #116035. I will close and you may mark as completed on the master issue.

  9. locked and limited conversation to collaborators on Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apxarea-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions