From: Carol Eidt Date: Wed, 2 Jan 2019 20:34:57 +0000 (-0800) Subject: Disable the [Intrinsic] check for desktop SIMD X-Git-Tag: accepted/tizen/unified/20190422.045933~212^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5a4a390e53cb30cc5b42f9dc4fb80c5ca579534;p=platform%2Fupstream%2Fcoreclr.git Disable the [Intrinsic] check for desktop SIMD --- diff --git a/src/jit/simd.cpp b/src/jit/simd.cpp index a302c63..4941f56 100644 --- a/src/jit/simd.cpp +++ b/src/jit/simd.cpp @@ -2354,13 +2354,20 @@ GenTree* Compiler::impSIMDIntrinsic(OPCODE opcode, { assert(featureSIMD); - // Exit early if we are either not in one of the SIMD types or if the method - // is not a JIT Intrinsic (which requires the [Intrinsic] attribute). - if (!isSIMDClass(clsHnd) || ((methodFlags & CORINFO_FLG_JIT_INTRINSIC) == 0)) + // Exit early if we are not in one of the SIMD types. + if (!isSIMDClass(clsHnd)) { return nullptr; } +#ifdef FEATURE_CORECLR + // For coreclr, we also exit early if the method is not a JIT Intrinsic (which requires the [Intrinsic] attribute). + if ((methodFlags & CORINFO_FLG_JIT_INTRINSIC) == 0) + { + return nullptr; + } +#endif // FEATURE_CORECLR + // Get base type and intrinsic Id var_types baseType = TYP_UNKNOWN; unsigned size = 0;