diff options
author | Samuel Benzaquen <sbenza@google.com> | 2014-12-01 14:46:14 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2014-12-01 14:46:14 +0000 |
commit | 95636e565a18a4f7ad41f0606d28e2e02c167c57 (patch) | |
tree | 6f9fd2c464ce3cfa6667119080b66dbc62725799 /clang/lib/Basic/Targets.cpp | |
parent | 75ddfabed756bfeb75057b535dc4a128946ed816 (diff) | |
download | bcm5719-llvm-95636e565a18a4f7ad41f0606d28e2e02c167c57.tar.gz bcm5719-llvm-95636e565a18a4f7ad41f0606d28e2e02c167c57.zip |
Make the function pointer a template argument instead of a runtime value.
Summary:
Speed up the variadic matchers by removing one indirect call.
Making the function pointer a template arguments allows the compiler to
inline the call instead of doing an runtime call by pointer.
Also, optimize the allOf() case to avoid redundant kind checks.
This speeds up our clang-tidy benchmark by ~2%
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D6424
llvm-svn: 223029
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions