aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2021-03-25 16:59:10 -0700
committerWei Mi <wmi@google.com>2021-03-29 09:34:37 -0700
commit3cbf44190b593210bdc78f45e5f747cb234ce5d9 (patch)
tree2977d14b5b8090c21e789c5a49ab97ce32e7fb84 /llvm/lib/Transforms/Utils/Utils.cpp
parent9320ac9b4965d769632398b620ca3e4af9b56b12 (diff)
downloadllvm-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