Skip to content
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

fix #21305, inference of splatting T.types or T.parameters #21310

Merged
merged 2 commits into from
Apr 7, 2017

Conversation

JeffBezanson
Copy link
Member

The first commit here is uncontroversial; it simply allows optimizing f(x...) when x is a Const tuple or SimpleVector. Previously, this would not get optimized when x was a Const(svec(...)).

The second commit infers a Const for T.parameters when T's type is Type{T}, and T is a leaf type. We were rightly being very cautious here, but I think this should be safe for leaf types, since they're all normalized via the type cache to have a predictable structure.

@ararslan ararslan added the compiler:inference Type inference label Apr 7, 2017
@ararslan ararslan requested a review from vtjnash April 7, 2017 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:inference Type inference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants