Skip to content

Sema: Fix two regressions when enabling disjunction pruning#87043

Closed
slavapestov wants to merge 3 commits intoswiftlang:mainfrom
slavapestov:fix-two-regressions
Closed

Sema: Fix two regressions when enabling disjunction pruning#87043
slavapestov wants to merge 3 commits intoswiftlang:mainfrom
slavapestov:fix-two-regressions

Conversation

@slavapestov
Copy link
Contributor

The expressions are now even faster than before.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

…wer score

We drop all favored choices except for those with the best score. If we had
other favored choices with a lower score, they might still match, but
require a subtype conversion, perhaps.

Count these choices, and when comparing two disjunctions with the same
number of favored choices, prefer the one with fewer less favored choices,
all else being equal, before comparing the number of active choices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant