From: Tanner Gooding Date: Thu, 29 Nov 2018 17:46:34 +0000 (-0800) Subject: Don't treat the Vector64/128/256 helper methods as intrinsic if featureSIMD is... X-Git-Tag: accepted/tizen/unified/20190422.045933~508 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c13fb067b511bfdd3d054b63314292fcb0eebc7;p=platform%2Fupstream%2Fcoreclr.git Don't treat the Vector64/128/256 helper methods as intrinsic if featureSIMD is disabled (#21274) --- diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp index cefb2fa..e8ccdc2 100644 --- a/src/jit/importer.cpp +++ b/src/jit/importer.cpp @@ -4109,7 +4109,13 @@ GenTree* Compiler::impIntrinsic(GenTree* newobjThis, // GenTree* Compiler::impBaseIntrinsic(NamedIntrinsic intrinsic, CORINFO_METHOD_HANDLE method, CORINFO_SIG_INFO* sig) { - GenTree* retNode = nullptr; + GenTree* retNode = nullptr; + + if (!featureSIMD) + { + return nullptr; + } + unsigned simdSize = 0; var_types baseType = getBaseTypeAndSizeOfSIMDType(sig->retTypeClass, &simdSize); var_types retType = getSIMDTypeForSize(simdSize);