[llvm] [BOLT]Identify indirect call (PR #123305)
Alexey Moksyakov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 00:55:21 PST 2025
yavtuk wrote:
@liusy58 it's good idea to use dwarf information to identify indirect tail call 👍.
But in my opinion the postProcessIndirectBranches is not better place where the CFI records are parsed for this functionality. We have debugInfo (preprocessDebugInfo()) function which is called before disassemble stage, here we can add the parsing related to indirect calls and store metadata for later usage. This information is architecture independent and can be used for x86 as well. Inside the postProcessIndirectBranches we can request debug info about a hint for this indirect call. But I am not a owner and it's better to hear more thoughts about it.
https://github.com/llvm/llvm-project/pull/123305
More information about the llvm-commits
mailing list