[all-commits] [llvm/llvm-project] f05ee3: Cache analysis-warning gates by diagnostic state
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Sep 11 01:39:53 PDT 2026
Branch: refs/heads/users/mamini/clang-speed-analysis-warning-gates
Home: https://github.com/llvm/llvm-project
Commit: f05ee3c7b6823c66ce6a75b8aa3e10396c16f1b9
https://github.com/llvm/llvm-project/commit/f05ee3c7b6823c66ce6a75b8aa3e10396c16f1b9
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M clang/include/clang/Sema/AnalysisBasedWarnings.h
M clang/lib/Sema/AnalysisBasedWarnings.cpp
Log Message:
-----------
Cache analysis-warning gates by diagnostic state
Avoid resolving the same disabled warning groups for every function. Reuse one
cached policy for the lifetime, uninitialized-use, fallthrough, recursion,
noexcept, and logical-error analysis gates.
CTMark O0 (3 samples, CPU 6): 29.439800 s -> 29.457833 s (+0.061%).
Impact on significant TUs in MLIR build time:
- `mlir/lib/RegisterAllDialects.cpp`: 1.5439% fewer retired
instructions.
- `mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp`: 0.7746% fewer retired
instructions.
Assisted-by: Codex
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list