forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow inlining of self-recursive functions into other functions.
This effectively returns us to the code from dc65f70. With the recent pass manager changes, combined with upcoming inliner changes, we can potentially run the inliner more than we currently do. Allowing self-recursive functions to be inlined, and running the inliner more often, can result in a lot of code bloat, which increases binary sizes and compile times. Even with a relatively small value (10) for the number of times we allow a function to run through the pass pipeline, we end up with a significant increase in the stdlib and stdlib unit test build times. This results in some performance regressions, but I think the trade-off here is reasonable.
- Loading branch information
Showing
2 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters