Skip to content

[5.1] SILOptimizer: some compile time fixes #23950

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 2 commits into from
Apr 12, 2019

Conversation

eeckstein
Copy link
Contributor

Disable some expensive optimizations for huge functions in SimplifyCFG and the performance inliner.
Those optimizations are not strictly linear with the number of blocks and cause compile time issues if the function is really huge.

SR-10209
rdar://problem/49522869

Disable constant folding and jump threading for functions with > 10000 blocks.
Those optimizations are not strictly linear with the number of blocks and cause compile time issues if the function is really huge.

SR-10209
rdar://problem/49522869
As the complexity of the analysis is more than linear with the number of blocks, disable it for functions with > 2000 basic blocks.
In this case inlining will be less aggressive.

SR-10209
rdar://problem/49522869
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 9cfa97b into swiftlang:swift-5.1-branch Apr 12, 2019
@eeckstein eeckstein deleted the fix-compile-time-5.1 branch April 12, 2019 01:30
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.

1 participant