From 3d4f306098dabeca3dd58a135abed2655917d209 Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Tue, 27 Apr 2021 18:08:59 +0300 Subject: [PATCH] Pass TYP_FLOAT to gtNewDconNode instead of creating a new scope --- src/coreclr/jit/importer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/coreclr/jit/importer.cpp b/src/coreclr/jit/importer.cpp index 8ec1ca1108c60..9edfe08c4dfb6 100644 --- a/src/coreclr/jit/importer.cpp +++ b/src/coreclr/jit/importer.cpp @@ -11463,11 +11463,7 @@ void Compiler::impImportBlockCode(BasicBlock* block) case CEE_LDC_R4: cval.dblVal = getR4LittleEndian(codeAddr); JITDUMP(" %#.17g", cval.dblVal); - { - GenTree* cnsOp = gtNewDconNode(cval.dblVal); - cnsOp->gtType = TYP_FLOAT; - impPushOnStack(cnsOp, typeInfo(TI_DOUBLE)); - } + impPushOnStack(gtNewDconNode(cval.dblVal, TYP_FLOAT), typeInfo(TI_DOUBLE)); break; case CEE_LDSTR: