Skip to content

Commit

Permalink
Don't handle IEquatable`1.Equals via SimdAsHWIntrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed May 18, 2020
1 parent d98776d commit 47498ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/coreclr/src/jit/simdashwintrinsic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@ GenTree* Compiler::impSimdAsHWIntrinsic(NamedIntrinsic intrinsic,
// We want to resolve and populate the handle cache for this type even
// if it isn't the basis for anything carried on the node.
baseType = getBaseTypeAndSizeOfSIMDType(clsHnd, &simdSize);
assert(simdSize != 0);

if (simdSize == 0)
{
// We get here for a devirtualization of IEquatable`1.Equals
assert(!isSIMDClass(clsHnd));
return nullptr;
}

if (retType == TYP_STRUCT)
{
Expand Down

0 comments on commit 47498ce

Please sign in to comment.