[clang] Add time trace scopes to addToCallGraph & getCFG (PR #174717)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 7 02:50:59 PST 2026
================
@@ -218,6 +219,7 @@ CFG *AnalysisDeclContext::getCFG() {
return getUnoptimizedCFG();
if (!builtCFG) {
+ llvm::TimeTraceScope TimeProfile("BuildCFG");
----------------
usx95 wrote:
nit: move this to `CFG::buildCFG` to avoid doing this in a `if` and benefit all callers.
https://github.com/llvm/llvm-project/pull/174717
More information about the cfe-commits
mailing list