Skip to content

Commit a711137

Browse files
committed
Don't allocate temp reg for floating comparisons
1 parent 41d470b commit a711137

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/coreclr/jit/lsrariscv64.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -394,21 +394,7 @@ int LinearScan::BuildNode(GenTree* tree)
394394
case GT_GT:
395395
{
396396
var_types op1Type = genActualType(tree->gtGetOp1()->TypeGet());
397-
if (varTypeIsFloating(op1Type))
398-
{
399-
bool isUnordered = (tree->gtFlags & GTF_RELOP_NAN_UN) != 0;
400-
if (isUnordered)
401-
{
402-
if (tree->OperIs(GT_EQ))
403-
buildInternalIntRegisterDefForNode(tree);
404-
}
405-
else
406-
{
407-
if (tree->OperIs(GT_NE))
408-
buildInternalIntRegisterDefForNode(tree);
409-
}
410-
}
411-
else
397+
if (!varTypeIsFloating(op1Type))
412398
{
413399
emitAttr cmpSize = EA_ATTR(genTypeSize(op1Type));
414400
if (tree->gtGetOp2()->isContainedIntOrIImmed())

0 commit comments

Comments
 (0)