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.
Add MayBindDynamicSelf to CallGraphAnalysis.
Why did I choose to pollute the call graph? Because it's convenient, efficient, and more robust than any current alternative. This is a property of the parent function that depends on all the call sites. We need to cache this information somehow and update it whenever edges are added to the call graph. The call graph does this perfectly. The thing I don't like is that it is conservative and may not return a precise answer after updates, which is generally undesirable. You normally want to get the same answer whether you update or recompute an analysis. Although this is generally bad, it is a good tradeoff now. The need for this call graph property is a consequence of the current SIL representation which should change soon. It only comes up in bizarre corner cases, and the imprecision will never show up in practice. Swift SVN r28784
- Loading branch information
Showing
4 changed files
with
35 additions
and
6 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
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