[all-commits] [llvm/llvm-project] 57c311: Inline cached AST context lookup for declarations
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Sep 11 01:39:54 PDT 2026
Branch: refs/heads/users/mamini/clang-speed-inline-ast-context
Home: https://github.com/llvm/llvm-project
Commit: 57c3115be7514d89033c9ebeea9cd0aeb922a3ae
https://github.com/llvm/llvm-project/commit/57c3115be7514d89033c9ebeea9cd0aeb922a3ae
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-11 (Fri, 11 Sep 2026)
Changed paths:
M clang/include/clang/AST/DeclBase.h
M clang/lib/AST/DeclBase.cpp
Log Message:
-----------
Inline cached AST context lookup for declarations
Route declaration context queries through the cached DeclContext path and
define the common path inline. This avoids walking to the translation unit
and removes a hot out-of-line call.
CTMark O0 (3 samples, CPU 6): 29.239400 s -> 28.975433 s (-0.903%).
Impact on significant TUs in MLIR build time:
- `mlir/lib/RegisterAllDialects.cpp`: 2.4845% fewer retired
instructions.
- `mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp`: 1.4241% 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