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

Remove some dead code from impAppendStmt and impStoreStruct#128033
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
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 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
@tannergooding tannergooding enabled auto-merge (squash) May 11, 2026 23:20
@tannergooding tannergooding merged commit 1a3af64 into dotnet:main May 12, 2026
138 checks passed
@tannergooding tannergooding deleted the remove-dead-code branch May 12, 2026 15:25
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.

3 participants