Skip to content

[sil-performance-inliner] Fix recent performance regressions #7652

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
Feb 21, 2017

Conversation

swiftix
Copy link
Contributor

@swiftix swiftix commented Feb 21, 2017

Do not perform any inlining of generics if it is not enabled. Don't do it even for always inline functions.

Do not perform any inlining of generics if it is not enabled. Don't do it even for always inline functions.
@swiftix
Copy link
Contributor Author

swiftix commented Feb 21, 2017

@swift-ci please smoke test

@slavapestov
Copy link
Contributor

Why not? Isn't the whole point of always inline that the function is always inline?

@swiftix
Copy link
Contributor Author

swiftix commented Feb 21, 2017

@slavapestov Because inlining of generics is not enabled yet. Doing it only partially for always inline functions regresses the performance. The subsequent patch will enable it by default everywhere in one go.

@swiftix
Copy link
Contributor Author

swiftix commented Feb 21, 2017

@swift-ci please smoke test Linux

@swiftix swiftix merged commit 9cfd86e into swiftlang:master Feb 21, 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