Skip to content

Remove some dead code from impAppendStmt and impStoreStruct - #128033

Merged
tannergooding merged 2 commits into
dotnet:mainfrom
tannergooding:remove-dead-code
May 12, 2026
Merged

tannergooding merged 2 commits into
dotnet:mainfrom
tannergooding:remove-dead-code

Conversation

@tannergooding

Copy link
Copy Markdown
Member

This was missed cleanup from #105023

Copilot AI review requested due to automatic review settings May 11, 2026 13:21
@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 May 11, 2026

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 performs missed cleanup in CoreCLR JIT import logic by removing unreachable/dead code paths related to retbuf handling in impAppendStmt and impStoreStruct, without changing effective behavior.

Changes:

  • Simplifies impAppendStmt retbuf retrieval by removing an unreachable branch and asserting the existing HasRetBuffer() invariant.
  • Removes a dead local/conditional in impStoreStruct and unconditionally tags the inserted arg as WellKnownArg::RetBuffer (as it already effectively did).

@tannergooding
tannergooding marked this pull request as ready for review May 11, 2026 13:26
@tannergooding tannergooding reopened this May 11, 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