Skip to content

JIT: Use VisitLocalDefNodes from gtTreeHasLocalStore - #127555

Merged
jakobbotsch merged 6 commits into
dotnet:mainfrom
jakobbotsch:fix-gtTreeHasLocalStore
May 4, 2026
Merged

jakobbotsch merged 6 commits into
dotnet: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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Resolved
Copilot AI review requested due to automatic review settings April 29, 2026 11:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 Resolved
Copilot AI review requested due to automatic review settings April 30, 2026 11:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@jakobbotsch
jakobbotsch marked this pull request as ready for review May 1, 2026 12:21
Copilot AI review requested due to automatic review settings May 1, 2026 12:21
@jakobbotsch

Copy link
Copy Markdown
Member Author

PTAL @dotnet/jit-contrib

No diffs.

@jakobbotsch
jakobbotsch requested a review from a team May 1, 2026 12:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

@jakobbotsch
jakobbotsch merged commit 7a98c25 into dotnet:main May 4, 2026
135 checks passed
@jakobbotsch
jakobbotsch deleted the fix-gtTreeHasLocalStore branch May 4, 2026 11:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 4, 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.

3 participants