]> granicus.if.org Git - clang/commit
Keep track of canonical decls in Redeclarable.
authorManuel Klimek <klimek@google.com>
Wed, 25 Mar 2015 23:18:30 +0000 (23:18 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 25 Mar 2015 23:18:30 +0000 (23:18 +0000)
commit41ed3fde4bac4e5e35eee18c1091ffd6ace9883d
tree18be0502d0750d2f834be5666c3e3effcbe984ab
parent2bd1fba7c2f7556bfe251ca422932697cecf48f8
Keep track of canonical decls in Redeclarable.

More than 2x speedup on modules builds with large redecl chains.
Roughly 15-20% speedup on non-modules builds for very large TUs.
Between 2-3% cost in memory on large TUs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233228 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/Redeclarable.h
lib/Serialization/ASTReaderDecl.cpp