[clang] [compiler-rt] [llvm] [TypeProf][InstrFDO]Implement more efficient comparison sequence for indirect-call-promotion with vtable profiles. (PR #81442)

Mingming Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 12 23:30:44 PDT 2024


================
@@ -103,27 +114,226 @@ static cl::opt<bool>
     ICPDUMPAFTER("icp-dumpafter", cl::init(false), cl::Hidden,
                  cl::desc("Dump IR after transformation happens"));
 
+// Indirect call promotion pass will fall back to function-based comparison if
+// vtable-count / function-count is smaller than this threshold.
----------------
minglotus-6 wrote:

I updated this patch with  `LLVM_DEBUG` to catch the pathological case.

In my internal change I do have such `LLVM_DEBUG` logs when testing this change and didn't find any. The threshold is to prevent backsliding.

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


More information about the cfe-commits mailing list