[clang-tools-extra] [clang] [llvm] [PGO] Sampled instrumentation in PGO to speed up instrumentation binary (PR #69535)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 27 11:24:38 PST 2024
================
@@ -770,7 +770,7 @@ BasicBlock *FuncPGOInstrumentation<Edge, BBInfo>::getInstrBB(Edge *E) {
auto canInstrument = [](BasicBlock *BB) -> BasicBlock * {
// There are basic blocks (such as catchswitch) cannot be instrumented.
// If the returned first insertion point is the end of BB, skip this BB.
- if (BB->getFirstInsertionPt() == BB->end())
+ if (BB->getFirstNonPHIOrDbgOrAlloca() == BB->end())
----------------
WenleiHe wrote:
what is the reason to instrument after alloca?
https://github.com/llvm/llvm-project/pull/69535
More information about the cfe-commits
mailing list