Skip to content

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.

@ghost ghost added 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 labels 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