Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fact discovery determines usage counts
Some time ago, a call was added to do fact discovery on inlinees. This process sets usage counts along the way. However, the code to set the usage counts in inlining was also in place, so we doubled all of the counts, which would frustrate dead code elimination possibilities that arise post-inline. With this change we only do fact discovery, and that call is moved to inline.c instead, where it feels a little more natural. Also don't pass along the inliner's plan to go with inlinee fact discovery; it doesn't relate to the inlinee, and could cause bogus guard insertion if we're unlucky.
- Loading branch information
Showing
3 changed files
with
4 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
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