Skip to content

Ensure that NI_Vector_Dot is always handled as TYP_SIMD - #88447

Merged
kunalspathak merged 5 commits into
dotnet:mainfrom
tannergooding:fix-83316
Jul 10, 2023
Merged

Ensure that NI_Vector_Dot is always handled as TYP_SIMD#88447
kunalspathak merged 5 commits into
dotnet:mainfrom
tannergooding:fix-83316

Conversation

@tannergooding

@tannergooding tannergooding commented Jul 5, 2023

Copy link
Copy Markdown
Member

This resolves #83316

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 5, 2023
@ghost ghost assigned tannergooding Jul 5, 2023
@ghost

ghost commented Jul 5, 2023

Copy link
Copy Markdown

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

Issue Details

null

Author: tannergooding
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Comment thread src/coreclr/jit/morph.cpp Outdated
Comment thread src/coreclr/jit/morph.cpp
GenTree* sqrt = nullptr;
GenTree* toScalar = nullptr;

if (op1->OperIs(GT_INTRINSIC))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wondering what are the examples where we now want to have varTypeIsFloating() check inside the OperIs(GT_INTRINSIC) check?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The codegen for integers was already doing the "right thing" and producing vectors where the result is in all elements, so the varTypeIsFloating check was unnecessary. It's only needed in the case we have a GT_INTRINSIC in-between, in which case we can only handle Sqrt and only for floating-point

Comment thread src/coreclr/jit/morph.cpp
Comment thread src/coreclr/jit/morph.cpp Outdated
Co-authored-by: Kunal Pathak <Kunal.Pathak@microsoft.com>
@tannergooding
tannergooding marked this pull request as ready for review July 8, 2023 02:12
@tannergooding

Copy link
Copy Markdown
Member Author

@kunalspathak, any other feedback or is this good to merge?

@kunalspathak kunalspathak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@kunalspathak
kunalspathak merged commit ab7c452 into dotnet:main Jul 10, 2023
@tannergooding
tannergooding deleted the fix-83316 branch July 10, 2023 11:15
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 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.

Test failure System.Numerics.Tests.Matrix4x4Tests.Matrix4x4CreateShadowTest02

2 participants