Repository navigation
JIT: Preserve GTF_GLOB_REF in assertion copy prop - #137372
Merged
AndyAyersMS merged 1 commit intoNov 12, 2026
Merged
Conversation
Fixes dotnet#137175. Co-authored-by: Copilot <[email protected]>
|
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. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Member
Author
|
@dotnet/jit-contrib ptal Simple fix |
Contributor
There was a problem hiding this comment.
🟢 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_REFafter 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
lewing
approved these changes
Nov 11, 2026
Member
Author
|
/ba-g ignoring an abandoned osx build leg |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #137175 by preserving
GTF_GLOB_REFwhen assertion copy propagation substitutes a local that requires the flag.Validated with a Checked CoreCLR build and the focused
System.Numerics.TensorsSinCos_RangeReductionAndSpecialValuestest underDOTNET_JitStress=2(956 tests, 0 failures).Note
This pull request description was generated with GitHub Copilot.