-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SampleFDO] Read call-graph matching recovered top-level function pro…
…file (#101053) With extbinary profile format, initial profile loading only reads profile based on current function names in the module. However, if a function is renamed, sample loader skips to load its original profile(which has a different name), we will miss this case. To address this, we load the top-level profile candidate explicitly for the matching. If a match is found later, the function profile will be further preserved for use by the sample loader.
- Loading branch information
Showing
5 changed files
with
278 additions
and
26 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
23 changes: 23 additions & 0 deletions
23
llvm/test/Transforms/SampleProfile/Inputs/pseudo-probe-stale-profile-toplev-func.prof
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
foo:2724522:51 | ||
1: 51 | ||
2: 452674 | ||
3: 47 | ||
4: 497875 | ||
6: 415959 | ||
10: 452623 | ||
11: 452687 bar:452687 | ||
12: 452623 | ||
13: 47 | ||
!CFGChecksum: 281479271677951 | ||
bar:452687:452687 | ||
1: 452687 | ||
!CFGChecksum: 4294967295 | ||
main:204:0 | ||
1: 0 | ||
2: 51 | ||
3: 0 | ||
4: 51 | ||
5: 51 foo:51 | ||
6: 51 | ||
7: 0 | ||
!CFGChecksum: 281582264815352 |
Oops, something went wrong.