[RyuJIT/ARM32] Fix using fgMorphMultiregStructArg for mkrefany
authorHyeongseok Oh <hseok82.oh@samsung.com>
Fri, 30 Jun 2017 05:04:51 +0000 (14:04 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Fri, 30 Jun 2017 05:04:51 +0000 (14:04 +0900)
Block using fgMorphMultiregStructArg function for mkrefany.
Morphing for mkrefany struct is already done in fgMorphArgs function.

src/jit/morph.cpp

index 588309d..dd83b77 100644 (file)
@@ -3816,7 +3816,8 @@ GenTreeCall* Compiler::fgMorphArgs(GenTreeCall* call)
                     hasMultiregStructArgs = true;
                 }
 #elif defined(_TARGET_ARM_)
-                if (size > 1)
+                // Build the mkrefany as a GT_FIELD_LIST in this function
+                if (size > 1 && argx->gtOper != GT_MKREFANY)
                 {
                     hasMultiregStructArgs = true;
                 }