Skip to content

[ConstraintSystem] Reinstate favoring more specialized of two generic… #17352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2018
Merged

[ConstraintSystem] Reinstate favoring more specialized of two generic… #17352

merged 1 commit into from
Jun 20, 2018

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Jun 20, 2018

… overloads.

This was originally commited in
3d32e89, and then backed out in
c40fd39 due to concern over
behavioral changes.

This version avoids the optimization when there are any optional types
involved in the signatures of the functions.

For these cases, compareDeclarations can return the wrong order at the
moment.

I have another PR in the works that attempts to begin unraveling some
of the issues around fixing the overload comparisons.

Fixes: rdar://problem/41109953

… overloads.

This was originally commited in
3d32e89, and then backed out in
c40fd39 due to concern over
behavioral changes.

This version avoids the optimization when there are any optional types
involved in the signatures of the functions.

For these cases, compareDeclarations can return the wrong order at the
moment.

I have another PR in the works that attempts to begin unraveling some
of the issues around fixing the overload comparisons.
@rudkx
Copy link
Contributor Author

rudkx commented Jun 20, 2018

@swift-ci Please smoke test

@rudkx
Copy link
Contributor Author

rudkx commented Jun 20, 2018

@swift-ci Please test source compatibility

@rudkx rudkx requested a review from DougGregor June 20, 2018 06:49
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably tighten this up later, but for now it LGTM. Thank you!

@rudkx rudkx merged commit 40b4eda into swiftlang:master Jun 20, 2018
@rudkx rudkx deleted the reenable-perf-hack-attempt-2 branch June 20, 2018 23:52
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.

2 participants