Skip to content

Commit

Permalink
Fix parentheses (dotnet#70145)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkiFoD committed Jun 16, 2022
1 parent d11970c commit 7c2cbd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12723,13 +12723,13 @@ GenTree* Compiler::fgOptimizeRelationalComparisonWithFullRangeConst(GenTreeOp* c
rhsMax = -1;
}

if ((op == GT_LT && ((uint64_t)lhsMax < (uint64_t)rhsMin) ||
(op == GT_LE && ((uint64_t)lhsMax <= (uint64_t)rhsMin))))
if (((op == GT_LT) && ((uint64_t)lhsMax < (uint64_t)rhsMin)) ||
((op == GT_LE) && ((uint64_t)lhsMax <= (uint64_t)rhsMin)))
{
ret = gtNewOneConNode(TYP_INT);
}
else if ((op == GT_LT && ((uint64_t)lhsMin >= (uint64_t)rhsMax) ||
(op == GT_LE && ((uint64_t)lhsMin > (uint64_t)rhsMax))))
else if (((op == GT_LT) && ((uint64_t)lhsMin >= (uint64_t)rhsMax)) ||
((op == GT_LE) && ((uint64_t)lhsMin > (uint64_t)rhsMax)))
{
ret = gtNewZeroConNode(TYP_INT);
}
Expand All @@ -12743,7 +12743,7 @@ GenTree* Compiler::fgOptimizeRelationalComparisonWithFullRangeConst(GenTreeOp* c
ret = gtNewZeroConNode(TYP_INT);
}
// [x0, x1] < [y0, y1] is true if x1 < y0
else if ((op == GT_LT) && lhsMax < rhsMin)
else if ((op == GT_LT) && (lhsMax < rhsMin))
{
ret = gtNewOneConNode(TYP_INT);
}
Expand Down

0 comments on commit 7c2cbd5

Please sign in to comment.