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

[release/8.0] JIT: DNER multiregs with SIMD12 #91878

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

jakobbotsch
Copy link
Member

Backport of #91674 to release/8.0

Customer Impact

The JIT will incorrectly handle structs of size 16 that contain Vector3 on Unix x64 ABIs and on ARM64. Bad codegen or JIT crashes can happen when these structs are returned from functions or are passed to them.

Testing

Regression test included.

Risk

Low. Fall back to more conservative treatment in the affected cases.

Locals with SIMD12 fields will never match the ABI when they end up
as multireg returns, so these should always be DNER'd.

Fix dotnet#91214
@ghost ghost assigned jakobbotsch Sep 11, 2023
@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 Sep 11, 2023
@ghost
Copy link

ghost commented Sep 11, 2023

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

Issue Details

Backport of #91674 to release/8.0

Customer Impact

The JIT will incorrectly handle structs of size 16 that contain Vector3 on Unix x64 ABIs and on ARM64. Bad codegen or JIT crashes can happen when these structs are returned from functions or are passed to them.

Testing

Regression test included.

Risk

Low. Fall back to more conservative treatment in the affected cases.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@jeffschwMSFT jeffschwMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved. please get a code review. once ready this can be merged

@jeffschwMSFT jeffschwMSFT added the Servicing-approved Approved for servicing release label Sep 11, 2023
@jeffschwMSFT jeffschwMSFT added this to the 8.0.0 milestone Sep 11, 2023
@carlossanlop carlossanlop merged commit 4147efb into dotnet:release/8.0 Sep 11, 2023
120 of 122 checks passed
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 12, 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 Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants