Don't treat the Vector64/128/256<T> helper methods as intrinsic if featureSIMD is...
authorTanner Gooding <tagoo@outlook.com>
Thu, 29 Nov 2018 17:46:34 +0000 (09:46 -0800)
committerGitHub <noreply@github.com>
Thu, 29 Nov 2018 17:46:34 +0000 (09:46 -0800)
src/jit/importer.cpp

index cefb2fa..e8ccdc2 100644 (file)
@@ -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);