From 969ce883cf5262115ee8774517a1716a317866f4 Mon Sep 17 00:00:00 2001 From: Jiyoung Yun Date: Mon, 19 Jun 2017 16:32:17 +0900 Subject: [PATCH] [RyuJIT/ARM32] Assign 1 srcCount in TYP_DOUBLE Even though TYP_DOUBLE uses 2 numSlots, we consume 1 srcCount in TYP_DOUBLE --- src/jit/lsraarmarch.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jit/lsraarmarch.cpp b/src/jit/lsraarmarch.cpp index fa27a7e..9b75e8e 100644 --- a/src/jit/lsraarmarch.cpp +++ b/src/jit/lsraarmarch.cpp @@ -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 -- 2.7.4