[llvm] [nfc][ctx_prof] Factor the callsite instrumentation exclusion criteria (PR #108471)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 15:01:32 PDT 2024
================
@@ -945,9 +945,7 @@ void FunctionInstrumenter::instrument() {
for (auto &BB : F)
for (auto &Instr : BB)
if (auto *CS = dyn_cast<CallBase>(&Instr)) {
- if ((CS->getCalledFunction() &&
- CS->getCalledFunction()->isIntrinsic()) ||
- dyn_cast<InlineAsm>(CS->getCalledOperand()))
+ if (!InstrProfCallsite::canInstrumentCallsite(*CS))
----------------
mtrofin wrote:
done
https://github.com/llvm/llvm-project/pull/108471
More information about the llvm-commits
mailing list