diff options
| author | Dehao Chen <dehao@google.com> | 2017-04-17 22:23:05 +0000 |
|---|---|---|
| committer | Dehao Chen <dehao@google.com> | 2017-04-17 22:23:05 +0000 |
| commit | 1ea8bd81096b42830bb4f20c891f5a34af385de6 (patch) | |
| tree | b806b1f95e312f306d3e3873c2479fb7811ade21 /clang/lib | |
| parent | 68f82a31d33beca9f276cca580cb3e96c7a4d6af (diff) | |
| download | bcm5719-llvm-1ea8bd81096b42830bb4f20c891f5a34af385de6.tar.gz bcm5719-llvm-1ea8bd81096b42830bb4f20c891f5a34af385de6.zip | |
Build SymbolMap in SampleProfileLoader to help matchin function names with suffix.
Summary: If there is suffix added in the function name (e.g. module hash added by thinLTO), we will not be able to find a match in profile as the suffix does not exist in profile. This patch build a map from function name to Function *. The map includes the entry for the stripped function name so that inlineHotFunctions can find the corresponding function to promote/inline.
Reviewers: davidxl, dnovillo, tejohnson
Reviewed By: davidxl
Subscribers: mehdi_amini, llvm-commits
Differential Revision: https://reviews.llvm.org/D31952
llvm-svn: 300507
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions

