[llvm] [llvm-profgen] Loading binary functions from .symtab when DWARF info is incomplete (PR #163654)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 21 21:57:37 PST 2025
================
@@ -1034,6 +1140,48 @@ void ProfiledBinary::computeInlinedContextSizeForFunc(
}
}
+void ProfiledBinary::loadSymbolsFromPseudoProbe() {
+ if (!UsePseudoProbes)
+ return;
+
+ const AddressProbesMap &Address2ProbesMap = getAddress2ProbesMap();
+ for (auto &[Addr, Range] : StartAddrToFuncRangeMap) {
----------------
HighW4y2H3ll wrote:
I'm actually leaning towards iterating over all the `Range`s... because I can check `Range.IsFuncEntry` and skip a lot of non-entry function ranges... The computation complexity is likely still the same...? but `BinaryFunction` doesn't contain a full `FuncRange` struct, so checking function entry points won't be that convenient with `ProfiledFunctions`...
https://github.com/llvm/llvm-project/pull/163654
More information about the llvm-commits
mailing list