[all-commits] [llvm/llvm-project] 3edcb8: Inline cached AST context lookup for declarations
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Sep 11 12:37:57 PDT 2026
Branch: refs/heads/users/mamini/clang-speed-inline-ast-context
Home: https://github.com/llvm/llvm-project
Commit: 3edcb8c335f3f319ad1eb88f8b5a14aa7d634ec1
https://github.com/llvm/llvm-project/commit/3edcb8c335f3f319ad1eb88f8b5a14aa7d634ec1
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.
Define the common path inline to avoid walking to the translation unit
and remove a hot out-of-line call.
The following measurements used the original relationship-cache parent,
before its cache-invalidation fixes.
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