Skip to content

arm64: Skip upper-vector restores in consecutive-register scans - #137340

Open
jonathandavies-arm wants to merge 1 commit into
dotnet:mainfrom
jonathandavies-arm:upstream/opt/arm64-consecutive-upper-vector-restores
Open

jonathandavies-arm wants to merge 1 commit into
dotnet:mainfrom
jonathandavies-arm:upstream/opt/arm64-consecutive-upper-vector-restores

Conversation

@jonathandavies-arm

Copy link
Copy Markdown
Contributor

Upper-vector restore ref positions can appear before table operands in a consecutive-register group. Skip those entries when checking candidate availability and existing operand allocations, so the allocator can reuse consecutive operands instead of copying them.

Add scalar-checked two-, three-, and four-vector table lookup tests with operands live across a call. The four-vector reuse case needs one full-vector copy instead of four and shrinks from 148 to 136 bytes.

Related to #136694

Upper-vector restore ref positions can appear before table operands in a
consecutive-register group. Skip those entries when checking candidate
availability and existing operand allocations, so the allocator can reuse
consecutive operands instead of copying them.

Add scalar-checked two-, three-, and four-vector table lookup tests with
operands live across a call. The four-vector reuse case needs one
full-vector copy instead of four and shrinks from 148 to 136 bytes.

Related to dotnet#136694
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 11, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 7 pipeline(s).
8 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@SwapnilGaikwad

Copy link
Copy Markdown
Contributor

cc: @dotnet/arm64-contrib @dhartglassMSFT

@SwapnilGaikwad SwapnilGaikwad mentioned this pull request Nov 19, 2026
2 of 27 tasks

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants