[llvm-branch-commits] [clang] Cache DeclContext owning declarations (PR #241232)
Pengcheng Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 11 03:20:17 PST 2026
https://github.com/wangpc-pp created https://github.com/llvm/llvm-project/pull/241232
Store the owning Decl pointer when constructing each DeclContext.
Use it for parent traversal and generic casts, avoiding a kind switch
for every conversion.
Three interleaved CTMark pairs reduce median compile time by 0.3935%
and geomean by 0.4199%.
Assisted-by: TRAE CLI (GPT-6)
More information about the llvm-branch-commits
mailing list