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

JIT: Avoid omitting copies for struct fields passed implicitly by reference #81787

Conversation

jakobbotsch
Copy link
Member

The code does not properly mark the parent struct as address exposed, but also doing so would completely disable any tracking/optimization for these locals which we do not want to do.

Fix #81739

The code does not properly mark the parent struct as address exposed,
but also doing so would completely disable any tracking/optimization for
these locals which we do not want to do.

Fix dotnet#81739
@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 Feb 7, 2023
@ghost ghost assigned jakobbotsch Feb 7, 2023
@ghost
Copy link

ghost commented Feb 7, 2023

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

Issue Details

The code does not properly mark the parent struct as address exposed, but also doing so would completely disable any tracking/optimization for these locals which we do not want to do.

Fix #81739

Author: jakobbotsch
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-replay

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch
Copy link
Member Author

Only some diffs in a few tests.
The issue can occur only if we have a promoted struct's field that is passed implicitly by reference. That happens only for some SIMD types and seems to be quite rare from looking at the diffs.

cc @dotnet/jit-contrib PTAL @EgorBo

@jakobbotsch jakobbotsch merged commit 5b2ceeb into dotnet:main Feb 8, 2023
@jakobbotsch jakobbotsch deleted the last-use-copy-elision-check-promoted-struct-fields branch February 8, 2023 15:38
@ghost ghost locked as resolved and limited conversation to collaborators Mar 10, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion in libraries-jitstress System.Numerics.Tests.PlaneTests:PlaneToStringTest
2 participants