summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-unused-raii.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-10-22 11:21:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-10-22 11:21:40 +0000
commit8e4a17634f1baa9df652412229a06be5ca4c9ba2 (patch)
tree6e87b2472a4e19e6793074067bd059313fec6df2 /clang-tools-extra/test/clang-tidy/misc-unused-raii.cpp
parent90b4dcecb1a469ab572f6181505852b2f2c74456 (diff)
downloadbcm5719-llvm-8e4a17634f1baa9df652412229a06be5ca4c9ba2.tar.gz
bcm5719-llvm-8e4a17634f1baa9df652412229a06be5ca4c9ba2.zip
[AST] Store Decl* and Stmt* directly into the ParentMap.
These are by far the most common types to be parents in the AST so it makes sense to optimize for them. Put them directly into the value of the map. This currently saves 32 bytes per parent in the map and a pointer indirection at the cost of some additional complexity in the code. Sadly this means we cannot return an ArrayRef from getParents anymore, add a proxy class that can own a single DynTypedNode and otherwise behaves exactly the same as ArrayRef. For example on a random large file (X86ISelLowering.cpp) this reduces the size of the parent map by 24 MB. Differential Revision: http://reviews.llvm.org/D13976 llvm-svn: 251008
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-unused-raii.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud