Skip to content

JIT: Remove unused promoted loop definitions - #133447

Open
jakobbotsch wants to merge 2 commits into
dotnet:mainfrom
jakobbotsch:remove-unused-promoted-loop-definitions
Open

jakobbotsch wants to merge 2 commits into
dotnet:mainfrom
jakobbotsch:remove-unused-promoted-loop-definitions

Conversation

@jakobbotsch

Copy link
Copy Markdown
Member

LCL_ADDR propagation only records assertions for locals that are neither promoted nor struct fields. Expanding loop stores into promoted parents and field locals therefore adds map entries that can never invalidate an assertion.

Early versions of LCL_ADDR propagation attempted to support promoted locals and their fields, which required this bookkeeping. Remove it now that those assertions are not supported.

`LCL_ADDR` propagation only records assertions for locals that are neither
promoted nor struct fields. Expanding loop stores into promoted parents and
field locals therefore adds map entries that can never invalidate an
assertion.

Early versions of `LCL_ADDR` propagation attempted to support promoted locals
and their fields, which required this bookkeeping. Remove it now that those
assertions are not supported.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a64a400a-c6c5-492a-9e23-2de29e4612ce
@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 8, 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 15, 2026 09:19
Copilot AI lite review requested due to automatic review settings September 15, 2026 09:19
@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.

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.

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Removes obsolete promoted-local and struct-field bookkeeping from JIT loop-definition tracking.

Changes:

  • Retains direct local-store definitions.
  • Simplifies LoopDefinitions::GetOrCreateMap.
File summaries
File Description
src/coreclr/jit/lclmorph.cpp Removes unused promoted-local and field map entries.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants