[llvm] [ctx_prof] Factor the callsite instrumentation exclusion criteria (PR #108471)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 13:31:58 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))
----------------
teresajohnson wrote:
Is this an NFC change? If so that could be noted in the title
https://github.com/llvm/llvm-project/pull/108471
More information about the llvm-commits
mailing list