diff options
author | Wei Mi <wmi@google.com> | 2021-03-25 16:59:10 -0700 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2021-03-29 09:34:37 -0700 |
commit | 3cbf44190b593210bdc78f45e5f747cb234ce5d9 (patch) | |
tree | 2977d14b5b8090c21e789c5a49ab97ce32e7fb84 /llvm/lib/Transforms/Utils/Utils.cpp | |
parent | 9320ac9b4965d769632398b620ca3e4af9b56b12 (diff) | |
download | llvm-3cbf44190b593210bdc78f45e5f747cb234ce5d9.zip llvm-3cbf44190b593210bdc78f45e5f747cb234ce5d9.tar.gz llvm-3cbf44190b593210bdc78f45e5f747cb234ce5d9.tar.bz2 |
[SampleFDO] Do not scale the magic number NOMORE_ICP_MAGICNUM in value profile
during profile update.
When we inline a function and update the profile, the value profiles of the
indirect call in the inliner and inlinee will be scaled. In
https://reviews.llvm.org/D96806 and https://reviews.llvm.org/D97350, we start
using the magic number NOMORE_ICP_MAGICNUM (-1) to mark targets which have
been promoted. The magic number shouldn't be scaled during the profile update.
Although the problem has been suppressed by https://reviews.llvm.org/D98187
for SampleFDO, which stops profile update for inlining in sampleFDO, the patch
is still wanted since it will be more consistent to handle the magic number
properly in profile update.
Differential Revision: https://reviews.llvm.org/D99394
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions