[llvm-branch-commits] [llvm] [ctx_prof] Add support for ICP (PR #105469)
Snehasish Kumar via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Aug 26 15:40:04 PDT 2024
================
@@ -572,6 +575,89 @@ CallBase &llvm::promoteCallWithIfThenElse(CallBase &CB, Function *Callee,
return promoteCall(NewInst, Callee);
}
+CallBase *llvm::promoteCallWithIfThenElse(CallBase &CB, Function &Callee,
+ PGOContextualProfile &CtxProf) {
+ assert(CB.isIndirectCall());
+ if (!CtxProf.isFunctionKnown(Callee))
----------------
snehasish wrote:
Might be useful to have some statistics on how many promoted / dropped?
https://github.com/llvm/llvm-project/pull/105469
More information about the llvm-branch-commits
mailing list