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
20 lines
372 B
Plaintext
20 lines
372 B
Plaintext
test:63067:0
|
|
4: 3345 _Z3barv:1398 _Z3foov:2059
|
|
test_inline:3000:0
|
|
5: foo_inline1:3000
|
|
1: 3000
|
|
5: foo_inline2:4000
|
|
1: 4000
|
|
test_noinline:3000:0
|
|
5: foo_noinline:3000
|
|
1: 3000
|
|
test_direct:3000:0
|
|
5: foo_direct:3000
|
|
1: 3000
|
|
test_inline_strip:3000:0
|
|
5: foo_inline_strip:3000
|
|
1: 3000
|
|
test_inline_strip_confilict:3000:0
|
|
5: foo_inline_strip_conflict:3000
|
|
1: 3000
|