aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2022-05-12 22:08:18 -0700
committerHongtao Yu <hoy@fb.com>2022-05-16 09:13:37 -0700
commitacfd0a345619c9293ac8fa5f690fa78b27a10814 (patch)
tree870d5548e287a028a8445a93c59405b550efc162 /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp
parentf287da8a158113840aeabd04b641d0d2815212f2 (diff)
downloadllvm-acfd0a345619c9293ac8fa5f690fa78b27a10814.zip
llvm-acfd0a345619c9293ac8fa5f690fa78b27a10814.tar.gz
llvm-acfd0a345619c9293ac8fa5f690fa78b27a10814.tar.bz2
[llvm-profgen] Update callsite body samples by summing up all call target samples.
Current profile generation caculcates callsite body samples and call target samples separately. The former is done based on LBR range samples while the latter is done based on branch samples. Note that there's a subtle difference. LBR ranges is formed from two consecutive branch samples. Therefore the last entry in a LBR record will not be counted towards body samples while there's still a chance for it to be counted towards call targets if it is a function call. I'm making sense of the call body samples by updating it to the aggregation of call targets. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D122609
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions