[llvm] [TypeProf][PGO]Support skipping vtable comparisons for a class and its derived ones (PR #110575)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 12:37:10 PDT 2024


================
@@ -132,6 +132,15 @@ static cl::opt<int> ICPMaxNumVTableLastCandidate(
     "icp-max-num-vtable-last-candidate", cl::init(1), cl::Hidden,
     cl::desc("The maximum number of vtable for the last candidate."));
 
+static cl::list<std::string> ICPIgnoredBaseTypes(
+    "icp-ignored-base-types", cl::Hidden,
+    cl::desc(
+        "A list of mangled vtable names. Classes specified by the vtables "
+        "and their derived ones will not be vtable-ICP'ed. Useful when the "
+        "profiled types and actual types in the optimized binary could be "
+        "different due to profiling "
+        "limitations."));
----------------
snehasish wrote:

nit: could be on previous line

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


More information about the llvm-commits mailing list