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

Specialize existential return types when possible. #5044

Merged
merged 7 commits into from
Sep 10, 2024

Conversation

csyonghe
Copy link
Collaborator

@csyonghe csyonghe commented Sep 9, 2024

Paritally addresses #5035.

This PR enhances our specialization logic so that functions that returns an existential value can now be specailized into a function that returns a concrete type. This avoid us generating unnecessary dynamic dispatch logic when the return type of the function is statically known.

@csyonghe csyonghe added the pr: non-breaking PRs without breaking changes label Sep 10, 2024
Copy link
Collaborator

@saipraveenb25 saipraveenb25 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@csyonghe csyonghe merged commit 936c22a into shader-slang:master Sep 10, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants