[PATCH] D134114: [Analysis] Introduce isSoleCallToLocalFunction (NFC)
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 18 07:15:51 PDT 2022
mtrofin added inline comments.
================
Comment at: llvm/lib/Analysis/InlineCost.cpp:1068
+static bool isSoleCallToLocalFunction(const CallBase &CB,
+ const Function &Callee) {
+ return Callee.hasLocalLinkage() && Callee.hasOneLiveUse() &&
----------------
Isn't the Callee obtainable from CB?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134114/new/
https://reviews.llvm.org/D134114
More information about the llvm-commits
mailing list