Skip to content

JIT: Simplify ifdef for R2R needsIndirectionCellArg condition in morph#127624

Open
adamperlin wants to merge 1 commit intodotnet:mainfrom
adamperlin:adamperlin/jit-simplify-indir-cell-ifdef
Open

JIT: Simplify ifdef for R2R needsIndirectionCellArg condition in morph#127624
adamperlin wants to merge 1 commit intodotnet:mainfrom
adamperlin:adamperlin/jit-simplify-indir-cell-ifdef

Conversation

@adamperlin
Copy link
Copy Markdown
Contributor

This was a bit of remaining feedback from #115375; Makes the condition for needsIndirectionCellArg more explicit in the ifdef chain and also moves and clarifies some comments.

@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 30, 2026
@adamperlin adamperlin added this to the 11.0.0 milestone Apr 30, 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 refactors the FEATURE_READYTORUN / target-ifdef logic in CallArgs::AddFinalArgsAndDetermineABIInfo to make the needsIndirectionCellArg condition clearer and to better document the per-architecture behavior for passing the R2R indirection cell.

Changes:

  • Replaces the prior #ifndef TARGET_WASM + nested #if TARGET_XARCH pattern with an explicit #ifdef TARGET_WASM / #elif TARGET_XARCH / #else chain.
  • Makes the xarch “fast tailcall requires explicit indirection cell arg” rule explicit in the boolean initializer.
  • Updates and reflows comments to more directly explain the rationale on WASM vs xarch vs other targets.

@adamperlin adamperlin requested a review from a team April 30, 2026 23:28
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.

4 participants