Skip to content

Normalize TYP_STRUCT to TYP_SIMD in impInlineUnboxNullable #116372

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

Merged
merged 2 commits into from
Jun 7, 2025

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Jun 6, 2025

Fixes #116369

@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 6, 2025
Copy link
Contributor

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

CORINFO_CLASS_HANDLE valueStructCls = NO_CLASS_HANDLE;
ClassLayout* layout = nullptr;
var_types valueType =
TypeHandleToVarType(info.compCompHnd->getFieldType(valueFldHnd, &valueStructCls), valueStructCls, &layout);
Copy link
Member

Choose a reason for hiding this comment

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

The evaluation order of args is implementation defined in C++. That might be the reason for the failures, since the getFieldType call needs to happen before the valueStructCls arg.

Copy link
Member Author

Choose a reason for hiding this comment

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

I haven't checked the failures yet, but it does look to be the problem

image

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that was it, thanks!

@EgorBo EgorBo marked this pull request as ready for review June 6, 2025 22:10
@EgorBo
Copy link
Member Author

EgorBo commented Jun 6, 2025

@dotnet/jit-contrib PTAL simple change, the previous code was attempting to create a STORE_BLK<TYP_STRUCT> for a layout being SIMD,

Zero diffs

@EgorBo EgorBo merged commit 5f3e1ff into dotnet:main Jun 7, 2025
115 checks passed
@EgorBo EgorBo deleted the fix-simd-unbox branch June 7, 2025 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.

JIT: Assertion failed 'layout->GetType() == TYP_STRUCT' during 'Morph - Inlining'
2 participants