diff options
author | Kazu Hirata <kazu@google.com> | 2024-11-08 18:24:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 18:24:38 -0800 |
commit | c61832444d7539eddb939df1107a751a6784aff3 (patch) | |
tree | 231ea87a8705be24c12ecab3a10c035bb05d3c55 /llvm/lib/CodeGen/MachineCSE.cpp | |
parent | 60ea60e36eb6de19e8e509e5b50a390e95801321 (diff) | |
download | llvm-c61832444d7539eddb939df1107a751a6784aff3.zip llvm-c61832444d7539eddb939df1107a751a6784aff3.tar.gz llvm-c61832444d7539eddb939df1107a751a6784aff3.tar.bz2 |
[memprof] Teach extractCallsFromIR to look into inline stacks (#115441)
To undrift the profile, we need to extract as many caller-callee pairs
from the IR as we can to maximize the number of call sites in the
profile we can undrift.
Now, since MemProfUsePass runs after early inlining, some functions
have been inlined, and we may no longer have bodies for those
functions in the IR. To cope with this, this patch teaches
extractCallsFromIR to extract caller-calee pairs from inline stacks.
The output format of extractCallsFromIR remains the same. We still
return a map from caller GUIDs to lists of corresponding call sites.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
0 files changed, 0 insertions, 0 deletions