[RyuJIT/ARM32] Assign 1 srcCount in TYP_DOUBLE
authorJiyoung Yun <jy910.yun@samsung.com>
Mon, 19 Jun 2017 07:32:17 +0000 (16:32 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Wed, 21 Jun 2017 02:07:15 +0000 (11:07 +0900)
Even though TYP_DOUBLE uses 2 numSlots, we consume 1 srcCount in TYP_DOUBLE

src/jit/lsraarmarch.cpp

index fa27a7e..9b75e8e 100644 (file)
@@ -711,12 +711,13 @@ void Lowering::TreeNodeInfoInitPutArgStk(GenTreePutArgStk* argNode, fgArgTabEntr
             MakeSrcContained(argNode, putArgChild);
         }
     }
+#ifdef _TARGET_ARM_
     else if (putArgChild->TypeGet() == TYP_DOUBLE) {
-        // We consume all of the items in the TYP_DOUBLE
-        // TYP_DOUBLE uses 2 numSlots
-        argNode->gtLsraInfo.srcCount = info->numSlots;
+        // Even though TYP_DOUBLE uses 2 numSlots, we consume 1 srcCount in TYP_DOUBLE
+        argNode->gtLsraInfo.srcCount = 1;
         putArgChild->SetContained();
     }
+#endif
     else
     {
         // We must not have a multi-reg struct