Skip to content

JIT: Use VisitLocalDefNodes from gtTreeHasLocalStore#127555

Draft
jakobbotsch wants to merge 5 commits intodotnet:mainfrom
jakobbotsch:fix-gtTreeHasLocalStore
Draft

JIT: Use VisitLocalDefNodes from gtTreeHasLocalStore#127555
jakobbotsch wants to merge 5 commits intodotnet:mainfrom
jakobbotsch:fix-gtTreeHasLocalStore

Conversation

@jakobbotsch
Copy link
Copy Markdown
Member

gtTreeHasLocalStore did not properly handle all definitions, skipping for example retbuf definitions. We have a low-level helper for this so use that.

`gtTreeHasLocalStore` did not properly handle all definitions, skipping
for example retbuf definitions. We have a low-level helper for this so
use that.
Copilot AI review requested due to automatic review settings April 29, 2026 10:56
@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 Apr 29, 2026
@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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Compiler::gtTreeHasLocalStore to detect local definitions more robustly by delegating “what counts as a local def” to the existing GenTree::VisitLocalDefNodes helper (intended to cover cases beyond explicit GT_STORE_LCL_*, such as retbuf-related defs).

Changes:

  • Replaced the direct OperIsLocalStore() / AsLclVarCommon() logic with a VisitLocalDefNodes-based check.
  • Updated the early-exit path to use GenTree::VisitResult from the helper.

Comment thread src/coreclr/jit/gentree.cpp
Copilot AI review requested due to automatic review settings April 29, 2026 11:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/coreclr/jit/gentree.cpp
Copilot AI review requested due to automatic review settings April 30, 2026 11:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants