diff options
author | Samuel Benzaquen <sbenza@google.com> | 2014-09-05 20:15:31 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2014-09-05 20:15:31 +0000 |
commit | 7ec2cb2fda0d3fbc88ff6b1e9bc98cbfc67fb29c (patch) | |
tree | 8a7a44331aa3f4ec63e33dd998b3eee0b03fe400 /clang/lib/Sema/Sema.cpp | |
parent | e89756f32a226cf85ce7d60a3b905e4b1510a39b (diff) | |
download | bcm5719-llvm-7ec2cb2fda0d3fbc88ff6b1e9bc98cbfc67fb29c.tar.gz bcm5719-llvm-7ec2cb2fda0d3fbc88ff6b1e9bc98cbfc67fb29c.zip |
Separate the matchers by type and statically dispatch to the right list.
Summary:
Separate the matchers by type and statically dispatch to the right list.
For any node type that we support, it reduces the number of matchers we
run it through.
For node types we do not support, it makes match() a noop.
This change improves our clang-tidy related benchmark by ~30%.
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D5197
llvm-svn: 217274
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
0 files changed, 0 insertions, 0 deletions