1) We now use the count size in FDO as the main factor to deal with pre-inliner. Currently we use the number of sample records in the SampleFDO profile. But that only counts the top-level body sample records (not including the nested call-sites). We are seeing some big functions not being updated because of this. I think using the count size in FDO profile is more reasonable to judge if the function is likely to be inlined to the callers in pre-inliner. (2) We use getMaxCount in SampleFDO rather the HeadSample to determine if if the function is hot in SampleFDO. This is in-sync with the logic in the compiler (also HeadSample can be 0). Differential Revision: https://reviews.llvm.org/D132602
19 lines
41 B
Plaintext
19 lines
41 B
Plaintext
:ir
|
|
foo
|
|
7
|
|
1
|
|
0
|
|
|
|
goo
|
|
5
|
|
3
|
|
0
|
|
0
|
|
0
|
|
|
|
moo
|
|
9
|
|
1
|
|
0
|
|
|