Skip to content

ClosureSpecializer: We don't need to insert releases for inlined thin_to_thick functions #10255

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

aschwaighofer
Copy link
Contributor

Makes sure we inline thin_to_thick closures into functions that may throw.

• Explanation: Enables inlining of non-capturing closures into throwing functions (like Collection map).

• Scope of Issue: MapReduceString regressed recently because of this. With this optimization we recover most of a 40% regression.

• Origination: N/A

• Risk: Low.
rdar://32595213

@aschwaighofer
Copy link
Contributor Author

@swiftix Can you review?

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@swiftix
Copy link
Contributor

swiftix commented Jun 14, 2017

LGTM!

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 41c6972
Test requested by - @aschwaighofer

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test mac os x platform

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test os x

@aschwaighofer aschwaighofer merged commit 36e1871 into swiftlang:swift-4.0-branch Jun 15, 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.

3 participants