Skip to content

Commit

Permalink
Pass TYP_FLOAT to gtNewDconNode instead of creating a new scope (#51928)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion authored Apr 29, 2021
1 parent dbf5f1c commit 25c2bb3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/coreclr/jit/importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11508,11 +11508,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:
Expand Down

0 comments on commit 25c2bb3

Please sign in to comment.