From 736376b1ccc2eea54fe42e2c1fa8793e623e6505 Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Mon, 5 Dec 2016 15:07:35 -0800 Subject: [PATCH] Allow remorph of SIMD assignment This fixes an assert exposed by JitStress=1. Commit migrated from https://github.com/dotnet/coreclr/commit/70e11ac7dc21b095e10cd0fb91c8cd3245e83cde --- src/coreclr/src/jit/morph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/jit/morph.cpp b/src/coreclr/src/jit/morph.cpp index d4dd7fa974509..3421863a4f808 100644 --- a/src/coreclr/src/jit/morph.cpp +++ b/src/coreclr/src/jit/morph.cpp @@ -10579,7 +10579,7 @@ GenTreePtr Compiler::fgMorphSmpOp(GenTreePtr tree, MorphAddrContext* mac) { // We should check whether op2 should be assigned to a SIMD field or not. // If it is, we should tranlate the tree to simd intrinsic. - assert((tree->gtDebugFlags & GTF_DEBUG_NODE_MORPHED) == 0); + assert(!fgGlobalMorph || ((tree->gtDebugFlags & GTF_DEBUG_NODE_MORPHED) == 0)); GenTreePtr newTree = fgMorphFieldAssignToSIMDIntrinsicSet(tree); typ = tree->TypeGet(); op1 = tree->gtGetOp1();