diff options
author | Han Shen <shenhan@google.com> | 2023-06-28 22:18:53 -0700 |
---|---|---|
committer | Han Shen <shenhan@google.com> | 2023-06-28 22:32:52 -0700 |
commit | 80155cbf0be1744953edf68b9729c24bd0de79c4 (patch) | |
tree | 5e9a5151fb8f2e6fd58d443bd6d664f4f81a5b0b /lldb/source/Commands/CommandObjectPlatform.cpp | |
parent | 548e08c3f635f72519d3bcadcc71cca7d31d1e6d (diff) | |
download | llvm-80155cbf0be1744953edf68b9729c24bd0de79c4.zip llvm-80155cbf0be1744953edf68b9729c24bd0de79c4.tar.gz llvm-80155cbf0be1744953edf68b9729c24bd0de79c4.tar.bz2 |
[Analysis] Refactor MBB hotness/coldness into templated PSI functions.
Currently, to use PSI->isFunctionHotInCallGraph, we first need to
calculate BPI->BFI, which is expensive. Instead, we can implement this
directly with MBFI. Also as @wenlei mentioned in another patch review,
that MachineSizeOpts already has isFunctionColdInCallGraph,
isFunctionHotInCallGraphNthPercentile, etc implemented. These can be
refactored and so they can be reused across MachineFunctionSplitting
and MachineSizeOpts passes.
This CL does this - it refactors out those internal static functions
into PSI as templated functions, so they can be accessed easily.
Differential Revision: https://reviews.llvm.org/D153927
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
0 files changed, 0 insertions, 0 deletions