Skip to content

JIT: Use a visitor for local occurrences through LocalsTreeList - #134927

Merged
jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:local-occurrences
Oct 1, 2026
Merged

jakobbotsch merged 1 commit into
dotnet:mainfrom
jakobbotsch:local-occurrences

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

This introduces an abstract mechanism to scan through locals occurrences via the LocalsTreeList. The idea is that future introduction of GT_STORE_LCL_VARS will not require too many changes in callers and will only need to change in the visitor itself.

This introduces an abstract mechanism to scan through locals occurrences
via the LocalsTreeList. The idea is that future introduction of
GT_STORE_LCL_VARS will not require too many changes in callers and will
only need to change in the visitor itself.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: e5380c17-dca4-4a54-b4bb-16ad9560f1e9
@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 Sep 30, 2026
@azure-pipelines

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

@jakobbotsch
jakobbotsch marked this pull request as ready for review September 30, 2026 14:34
Comment thread src/coreclr/jit/gentree.cpp Resolved
Comment thread src/coreclr/jit/compiler.hpp Resolved
Comment thread src/coreclr/jit/compiler.hpp Resolved
@jakobbotsch

Copy link
Copy Markdown
Member Author

cc @dotnet/jit-contrib PTAL @EgorBo

No diffs, minor TP regressions.
More preparatory work for introducing GT_STORE_LCL_VARS, to minimize diffs needed for that work.

@jakobbotsch
jakobbotsch requested a review from EgorBo September 30, 2026 14:44
@jakobbotsch
jakobbotsch merged commit fc5e7e5 into dotnet:main Oct 1, 2026
138 of 140 checks passed
@jakobbotsch
jakobbotsch deleted the local-occurrences branch October 1, 2026 12:19
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants