Skip to content

Commit 4aad932

Browse files
authored
Merge pull request #15581 from apple/remove-narrow-perf-hack
[CSSolver] Remove tuple-to-tuple narrow perf hack
2 parents 0a0a3c6 + 641b80b commit 4aad932

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/Sema/CSSolver.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ static bool shortCircuitDisjunctionAt(Constraint *constraint,
17241724

17251725
return true;
17261726
}
1727-
1727+
17281728
// Anything without a fix is better than anything with a fix.
17291729
if (constraint->getFix() && !successfulConstraint->getFix())
17301730
return true;
@@ -1990,13 +1990,6 @@ bool ConstraintSystem::solveSimplified(
19901990
}
19911991

19921992
lastSolvedChoice = {currentChoice, *score};
1993-
1994-
// If we see a tuple-to-tuple conversion that succeeded, we're done.
1995-
// FIXME: This should be more general.
1996-
if (auto restriction = currentChoice->getRestriction()) {
1997-
if (*restriction == ConversionRestrictionKind::TupleToTuple)
1998-
break;
1999-
}
20001993
}
20011994

20021995
if (TC.getLangOpts().DebugConstraintSolver) {

0 commit comments

Comments
 (0)