Skip to content

[silgenpattern] Only emit a shared case if we have a fallthrough/mult… #23161

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 7, 2019

…iple cast items.

There was a bug here where we were emitting a shared case if we had arguments.
That is why we needed the hacked in deletion of that block when we emitted
shared blocks. I was able to replace that with an assert to make sure that we do
not regress.

This additionally improved our code generation by eliminating a potential extra
copy when we had such a case. That is where the test updates come from.

…iple cast items.

There was a bug here where we were emitting a shared case if we had arguments.
That is why we needed the hacked in deletion of that block when we emitted
shared blocks. I was able to replace that with an assert to make sure that we do
not regress.

This additionally improved our code generation by eliminating a potential extra
copy when we had such a case. That is where the test updates come from.
@gottesmm gottesmm requested a review from slavapestov March 7, 2019 19:54
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 7, 2019

@swift-ci test

@gottesmm gottesmm merged commit 87604fe into swiftlang:master Mar 8, 2019
@gottesmm gottesmm deleted the pr-a5f2826a8beda8910e2b0dc7efba52dce1379f8d branch March 8, 2019 01:04
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