Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix volatility checks in VN and loop side effects code #85467

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Apr 27, 2023

It is the LHS that carries GTF_IND_VOLATILE, not ASG itself.

Conversely, we should not invoke fgMutateGcHeap when processing the LHS by itself.

A small number of regressions (in the sense that we do not hoist/CSE some things) is expected.

Diffs.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Apr 27, 2023
@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Apr 27, 2023
@ghost
Copy link

ghost commented Apr 27, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

It is the LHS that carries GTF_IND_VOLATILE, not ASG itself.

A small number of regressions is expected.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Volatile stores should be processed at the point of ASG.
@SingleAccretion SingleAccretion changed the title Fix volatile check in loop side effects code Fix volatility checks in VN and loop side effects code Apr 27, 2023
@SingleAccretion
Copy link
Contributor Author

Diffs.

Simple change, intent is to avoid diffs in #85494.

@dotnet/jit-contrib

@jakobbotsch jakobbotsch merged commit 231f85f into dotnet:main Apr 28, 2023
@SingleAccretion SingleAccretion deleted the Volatile-Check branch May 6, 2023 15:59
@ghost ghost locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants