From 2c13fb067b511bfdd3d054b63314292fcb0eebc7 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 29 Nov 2018 09:46:34 -0800 Subject: [PATCH] Don't treat the Vector64/128/256 helper methods as intrinsic if featureSIMD is disabled (#21274) --- src/jit/importer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- 2.7.4