Skip to content

Commit a27d330

Browse files
committed
Fixes.
1 parent d825977 commit a27d330

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/coreclr/jit/lower.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11121,22 +11121,14 @@ bool Lowering::TryLowerAndOrToCCMP(GenTreeOp* tree, GenTree** next)
1112111121
// For the other operand we can allow more arbitrary operations that set
1112211122
// the condition flags; the final transformation into the flags def is done
1112311123
// by TryLowerConditionToFlagsNode.
11124-
#if defined(TARGET_AMD64)
11125-
const bool allowMultipleFlagChecks = false;
11126-
#elif defined(TARGET_ARM64)
11127-
const bool allowMultipleFlagChecks = true;
11128-
#else
11129-
#error Unsupported target
11130-
#endif
11131-
1113211124
GenCondition cond1;
1113311125
if (op2->OperIsCmpCompare() && varTypeIsIntegralOrI(op2->gtGetOp1()) && IsInvariantInRange(op2, tree) &&
11134-
TryLowerConditionToFlagsNode(tree, op1, &cond1, allowMultipleFlagChecks))
11126+
TryLowerConditionToFlagsNode(tree, op1, &cond1, false))
1113511127
{
1113611128
// Fall through, converting op2 to the CCMP
1113711129
}
1113811130
else if (op1->OperIsCmpCompare() && varTypeIsIntegralOrI(op1->gtGetOp1()) && IsInvariantInRange(op1, tree) &&
11139-
TryLowerConditionToFlagsNode(tree, op2, &cond1, allowMultipleFlagChecks))
11131+
TryLowerConditionToFlagsNode(tree, op2, &cond1, false))
1114011132
{
1114111133
std::swap(op1, op2);
1114211134
}

0 commit comments

Comments
 (0)