Assign 2 numslots to gtLsraInfo.srcCount in TYP_DOUBLE
authorJiyoung Yun <jy910.yun@samsung.com>
Fri, 16 Jun 2017 02:52:35 +0000 (11:52 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Wed, 21 Jun 2017 02:07:15 +0000 (11:07 +0900)
src/jit/lsraarmarch.cpp

index f58da4a..fa27a7e 100644 (file)
@@ -711,6 +711,12 @@ void Lowering::TreeNodeInfoInitPutArgStk(GenTreePutArgStk* argNode, fgArgTabEntr
             MakeSrcContained(argNode, putArgChild);
         }
     }
+    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;
+        putArgChild->SetContained();
+    }
     else
     {
         // We must not have a multi-reg struct