Repository navigation
Fix JIT over reporting RCPC2 - #135134
Merged
Merged
Fix JIT over reporting RCPC2#135134
Conversation
|
Azure Pipelines: Successfully started running 5 pipeline(s). 11 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 |
tannergooding
approved these changes
Oct 2, 2026
tannergooding
left a comment
Member
There was a problem hiding this comment.
LGTM. There's probably a few others like this too, I've seen too many cases of the opportunistic check happening too early relative to its use.
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.
Lowering::TryCreateAddrModewould callcompOpportunisticallyDependsOn(InstructionSet_Rcpc2)for volatile loads/stores on ARM64, but could still bail out if, for example, the address offset doesn't fit in 9 bits.This could cause R2R to over-report needing RCPC2 ISA for methods which didn't end up using the feature
Fix is to move the
compOpportunisticallyDependsOnafter the eligibility checks in the lowering method. Also needed an explicit bailout for scalar-stores that ended up turning into write-barriers, so we don't report an RCPC2 requirement for this method:The bug is somewhat moot now that RCPC2 is removed from the optimistic arm64 set, but better to fix the over-reporting anyway. Got 0 diffs.
Tested by adding RCPC2 back to the optimistic set and building for linux arm64. The methods from the bug no longer had RCPC2 erroneously reported.
fixes #133671