Skip to content

[LSRA] Add support for allocating consecutive registers #39457

Closed

Description

@CarolEidt

This is currently supported in a limited form for Arm32 double registers, which must be an even/odd pair. However, this support is not well structured, and penalizes the common path that requires only a single register.
In order to support the Arm64 LoadPairVector intrinsics (#39243) intrinsics that would correspond to LD1-LD4, ST1-ST4 instruction, we need the ability to allocate consecutive vector registers, and we don't want to penalize the common path for this case.
One option would be to templatize the allocation methods such that the ones supporting consecutive registers would only be called when required.
Related: issue #8758 would presumably be addressed by such an approach.

category:proposal
theme:register-allocator
skill-level:expert
cost:large
impact:medium

Activity

  1. added
    area-CodeGen-coreclr
    on Jul 16, 2020
  2. added this to the 6.0.0 milestone on Jul 16, 2020
  3. added
    untriaged
    on Jul 16, 2020
  4. echesakov commented on Jul 16, 2020

    @echesakov
    Contributor

    @CarolEidt Small correction: we need consecutive vector registers allocation for Arm64 intrinsics that would correspond to LD1-LD4, ST1-ST4 instruction not for LoadPairVector/StorePair since the latter can operate on an arbitrary pair of SIMD registers.

  5. removed
    untriaged
    on Jul 16, 2020
  6. CarolEidt commented on Jul 16, 2020

    @CarolEidt
    ContributorAuthor

    @echesakovMSFT - thanks for clarifying!

  7. added
    needs-further-triage
    on Mar 23, 2021
  8. removed
    needs-further-triage
    on Apr 1, 2021
  9. modified the milestones: 6.0.0, Future on Apr 1, 2021
  10. kunalspathak commented on Apr 1, 2021

    @kunalspathak
    Contributor

    I don't think we will do this in .NET 6.0. Moving to future.

  11. removed their assignment
    on Mar 15, 2022
  12. modified the milestones: Future, 8.0.0 on Jan 23, 2023
  13. kunalspathak commented on Apr 4, 2023

    @kunalspathak
    Contributor

    Completed by #80297. Note that the arm scenarios are different because the consecutive registers represent a single double variable but for other common cases like arm64's tbl/tbx/ld2~ld4, st2~st4 needs consecutive registers for independent intervals which is handled by #80297.

  14. ghost locked as resolved and limited conversation to collaborators on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-arm64area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions