JIT: fix arm64 crossgen simd issue
authorAndy Ayers <andya@microsoft.com>
Wed, 17 Apr 2019 21:32:07 +0000 (14:32 -0700)
committerAndy Ayers <andya@microsoft.com>
Wed, 17 Apr 2019 21:39:39 +0000 (14:39 -0700)
Need to check `supportSIMDType()` and not `featureSIMD` in rationalize.

Fixes #24055.

src/jit/rationalize.cpp

index cf5f44a..6f4491b 100644 (file)
@@ -75,8 +75,8 @@ void copyFlags(GenTree* dst, GenTree* src, unsigned mask)
 void Rationalizer::RewriteSIMDOperand(LIR::Use& use, bool keepBlk)
 {
 #ifdef FEATURE_SIMD
-    // No lowering is needed for non-SIMD nodes, so early out if featureSIMD is not enabled.
-    if (!comp->featureSIMD)
+    // No lowering is needed for non-SIMD nodes, so early out if SIMD types are not supported.
+    if (!comp->supportSIMDTypes())
     {
         return;
     }