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

Account for global stores in hoisting properly #67213

Merged

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Mar 28, 2022

We were not doing so in all cases, which could lead to reordering a throw with a store.

Small diffs where we no longer hoist across a global store.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Mar 28, 2022
@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 Mar 28, 2022
@ghost
Copy link

ghost commented Mar 28, 2022

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

Issue Details

We were not doing so in all cases, which could lead to reordering a throw with a store.

We're expecting some small diffs where we no longer hoist across a global store.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@SingleAccretion
Copy link
Contributor Author

Assuming CI failures are not related:

  1. Linux ARM - System.Text.Json.SourceGeneration.Roslyn3.11.Tests crashes due to an assertion on linux/arm64/debug #65817.
  2. OSX x64 - Profiler.Tests.GCBasicTests test failure #67106.
  3. Windows ARM64 - same failure mode as here (which was for a comment-only change).

@SingleAccretion SingleAccretion marked this pull request as ready for review March 28, 2022 08:04
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

The contract for whether the LHS of a global ASG(IND, ...)
should be marked with GLOB_REF is not clearly specified.
@BruceForstall BruceForstall merged commit 7f94e6e into dotnet:main Mar 31, 2022
@SingleAccretion SingleAccretion deleted the Store-Effects-Fixes-Hoisting branch March 31, 2022 20:45
@ghost ghost locked as resolved and limited conversation to collaborators May 1, 2022
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.

3 participants