aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProfReader.cpp
diff options
context:
space:
mode:
authorWenlei He <aktoon@gmail.com>2021-08-18 21:09:49 -0700
committerWenlei He <aktoon@gmail.com>2021-08-25 09:01:11 -0700
commita6f15e9a49a1a5bcd1ce7f30b1201d977d8a8ede (patch)
tree5ba67422289c091927f6f973b0751db20c6006ed /llvm/lib/ProfileData/SampleProfReader.cpp
parent498db6ab4382e93ee4239c3aa3be04dfab1b9dc9 (diff)
downloadllvm-a6f15e9a49a1a5bcd1ce7f30b1201d977d8a8ede.zip
llvm-a6f15e9a49a1a5bcd1ce7f30b1201d977d8a8ede.tar.gz
llvm-a6f15e9a49a1a5bcd1ce7f30b1201d977d8a8ede.tar.bz2
[CSSPGO] Use probe inline tree to track zero size fully optimized context for pre-inliner
This is a follow up diff for BinarySizeContextTracker to track zero size for fully optimized inlinee. When an inlinee is fully optimized away, we won't be able to get its size through symbolizing instructions, hence we will treat the corresponding context size as unknown. However by traversing the inlined probe forest, we know what're original inlinees regardless of optimization. If a context show up in inlined probes, but not during symbolization, we know that it's fully optimized away hence its size is zero instead of unknown. It should provide more accurate size cost estimation for pre-inliner to make better inline decisions in llvm-profgen. Differential Revision: https://reviews.llvm.org/D108350
Diffstat (limited to 'llvm/lib/ProfileData/SampleProfReader.cpp')
0 files changed, 0 insertions, 0 deletions