Skip to content

Add a new builtin called is_same_metatype for checking the equality between metatypes #9627

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
May 16, 2017

Conversation

swiftix
Copy link
Contributor

@swiftix swiftix commented May 15, 2017

Having such a builtin makes it easier for the optimizer to reason about what is actually happening.
I plan to add later some optimizations which can optimize pieces of code dominated by such a check.

…etween metatypes

Having such a builtin makes it easier for the optimizer to reason about what is actually happening.
I plan to add later some optimizations which can optimize pieces of code dominated by such a check.
@swiftix
Copy link
Contributor Author

swiftix commented May 15, 2017

@swift-ci please smoke test

@swiftix
Copy link
Contributor Author

swiftix commented May 15, 2017

@jckarter Do you mind having a look? This is a builtin we have discussed last week.

@swiftix swiftix requested a review from jckarter May 15, 2017 23:25
Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Looks great!

@swiftix swiftix merged commit 34ad596 into swiftlang:master May 16, 2017
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