summaryrefslogtreecommitdiff
path: root/src/jit/valuenum.cpp
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2018-12-20 11:08:10 -0800
committerCarol Eidt <carol.eidt@microsoft.com>2019-01-03 07:47:52 -0800
commitde287410d790bc93668d4d01a202494087af8885 (patch)
treed945c07956c114dd73d21840a130199ecc109861 /src/jit/valuenum.cpp
parenteff427c02a89e135c38a96032feb3c9a6a13cf5b (diff)
downloadcoreclr-de287410d790bc93668d4d01a202494087af8885.tar.gz
coreclr-de287410d790bc93668d4d01a202494087af8885.tar.bz2
coreclr-de287410d790bc93668d4d01a202494087af8885.zip
Fix desktop SIMD failures
Fix ISA checking to work with desktop. Also fix Value Numbering jitdump to not assert for struct types without a handle.
Diffstat (limited to 'src/jit/valuenum.cpp')
-rw-r--r--src/jit/valuenum.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jit/valuenum.cpp b/src/jit/valuenum.cpp
index 40f6c05b7f..adb7b7b8f3 100644
--- a/src/jit/valuenum.cpp
+++ b/src/jit/valuenum.cpp
@@ -6316,7 +6316,10 @@ ValueNum Compiler::fgMemoryVNForLoopSideEffects(MemoryKind memoryKind,
if (verbose)
{
var_types elemTyp = DecodeElemType(elemClsHnd);
- if (varTypeIsStruct(elemTyp))
+ // If a valid class handle is given when the ElemType is set, DecodeElemType will
+ // return TYP_STRUCT, and elemClsHnd is that handle.
+ // Otherwise, elemClsHnd is NOT a valid class handle, and is the encoded var_types value.
+ if (elemTyp == TYP_STRUCT)
{
printf(" Array map %s[]\n", eeGetClassName(elemClsHnd));
}