Skip to content

JIT: Preserve GTF_GLOB_REF in assertion copy prop - #137372

Merged
AndyAyersMS merged 1 commit into
dotnet:mainfrom
AndyAyersMS:fix/137175-glob-ref-copyprop
Nov 12, 2026
Merged

AndyAyersMS merged 1 commit into
dotnet:mainfrom
AndyAyersMS:fix/137175-glob-ref-copyprop

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

Fixes #137175 by preserving GTF_GLOB_REF when assertion copy propagation substitutes a local that requires the flag.

Validated with a Checked CoreCLR build and the focused System.Numerics.Tensors SinCos_RangeReductionAndSpecialValues test under DOTNET_JitStress=2 (956 tests, 0 failures).

Note

This pull request description was generated with GitHub Copilot.

@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 Nov 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 5 pipeline(s).
10 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.

@AndyAyersMS
AndyAyersMS requested a balanced review from Copilot November 11, 2026 18:52
@AndyAyersMS

Copy link
Copy Markdown
Member Author

@dotnet/jit-contrib ptal

Simple fix

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 active review issues are identified for the JIT copy-propagation metadata update.

No open issues 🎉

What changed in this PR

This PR addresses #137175 by keeping local-reference flags consistent during JIT assertion copy propagation.

Changes:

  • Sets GTF_GLOB_REF after local substitution when the replacement local requires it, without clearing existing flags.
File Description
src/​coreclr/​jit/​assertionprop.cpp Updates optCopyAssertionProp to preserve required global-reference metadata.

Review effort: Balanced

@AndyAyersMS

Copy link
Copy Markdown
Member Author

/ba-g ignoring an abandoned osx build leg

@AndyAyersMS
AndyAyersMS merged commit 90c287a into dotnet:main Nov 12, 2026
127 of 130 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 12, 2026
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.

[ci-scan] Test failure: VectorMath.SinCosDouble asserts "Missing flags on tree" under JitStress2

3 participants