[all-commits] [llvm/llvm-project] c61ea7: Cache analysis-warning gates by diagnostic state
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Sep 11 12:53:58 PDT 2026
Branch: refs/heads/users/mamini/clang-speed-analysis-warning-gates
Home: https://github.com/llvm/llvm-project
Commit: c61ea75c026b80da141fcfec024faf896fd5c05a
https://github.com/llvm/llvm-project/commit/c61ea75c026b80da141fcfec024faf896fd5c05a
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