[llvm] [SampleFDO][TypeProf]Support vtable type profiling for ext-binary and text format (PR #148002)

David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 08:24:11 PDT 2025


================
@@ -1286,6 +1353,23 @@ class FunctionSamples {
   /// collected in the call to baz() at line offset 8.
   CallsiteSampleMap CallsiteSamples;
 
+  /// Map virtual callsites to the vtable from which they are loaded.
----------------
david-xl wrote:

Nit: map a vcall site to the list of accessed vtables by the site. The vcallsite is referenced by its source location, and ...

https://github.com/llvm/llvm-project/pull/148002


More information about the llvm-commits mailing list