Skip to content

Arm64-SVE: Ensure scalable frame requirements are detected correctly - #138280

Open
snickolls-arm wants to merge 1 commit into
dotnet:mainfrom
snickolls-arm:early-scalable-frame-detection
Open

snickolls-arm wants to merge 1 commit into
dotnet:mainfrom
snickolls-arm:early-scalable-frame-detection

Conversation

@snickolls-arm

Copy link
Copy Markdown
Contributor

Record scalable frame requirements during import, and propagate them correctly through inlining. The requirement needs to be established before tail-call decisions (morph) and register allocation.

Since we don't truly learn whether the frame is required or not until after spill slots have been established, this means we can request frames that are ultimately not needed. Handle this scenario in codegen. This also means that we cannot perform fast tail-call optimizations when Vector<T> has a scalable representation for now, because we cannot guarantee that we won't spill vectors until after register allocation.

Record scalable frame requirements during import, and propagate them correctly
through inlining. The requirement needs to be established before tail-call
decisions (morph) and register allocation.

Since we don't truly learn whether the frame is required or not until after spill
slots have been established, this means we can request frames that are ultimately
not needed. Handle this scenario in codegen. This also means that we cannot
perform fast tail-call optimizations when Vector<T> has a scalable representation for
now, because we cannot guarantee that we won't spill vectors until after register
allocation.
@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 25, 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 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 5 pipeline(s).
10 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.

@jkotas jkotas added the arm-sve Work related to arm64 SVE/SVE2 support label Nov 25, 2026
@SwapnilGaikwad

Copy link
Copy Markdown
Contributor

cc: @dotnet/arm64-contrib @dhartglassMSFT

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 arm-sve Work related to arm64 SVE/SVE2 support 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.

3 participants