[SampleFDO] Add a cutoff flag to control how many symbols will be included
authorWei Mi <wmi@google.com>
Sun, 28 Feb 2021 05:44:28 +0000 (21:44 -0800)
committerWei Mi <wmi@google.com>
Sun, 28 Feb 2021 07:15:31 +0000 (23:15 -0800)
commit7fb400112f6c41fc98ee5d584cdc0dfe76393a25
tree021c7f185a56571984a31cde76bee22d58dc8a69
parentb3c28214009820532d77708a468f65cc89525f13
[SampleFDO] Add a cutoff flag to control how many symbols will be included
into profile symbol list.

When test is unrepresentative to production behavior, sample profile
collected from production can cause unexpected performance behavior
in test. To triage such issue, it is useful to have a cutoff flag
to control how many symbols will be included into profile symbol list
in order to do binary search.

Differential Revision: https://reviews.llvm.org/D97623
llvm/lib/ProfileData/SampleProf.cpp
llvm/test/Transforms/SampleProfile/Inputs/profile-symbol-list.text
llvm/test/Transforms/SampleProfile/profile-sample-accurate.ll