Go to file
Samuel Benzaquen b6f0a83f41 Skip some unnecessary type checks.
Summary:
Skip some unnecessary type checks wrt DynTypedNodes.
Add DynTypedNode::getUnchecked() to skip the runtime check when the type
is known.
Speed up DynTypedNode::operator== by using isSame() instead of
isBaseOf().
Skip the type check in MatcherInterface<T>::matches(). All calls come
from DynTypedMatcher::matches(), which already did the type check.
This change speeds up our clang-tidy benchmark by ~4%.

Reviewers: klimek

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D6468

llvm-svn: 223134
2014-12-02 18:29:00 +00:00
clang Skip some unnecessary type checks. 2014-12-02 18:29:00 +00:00
clang-tools-extra Update and simplify to match Clang r223095. 2014-12-02 00:32:02 +00:00
compiler-rt [Tsan] Fix the atomic_race.cc test to pass on systems with high loads 2014-12-02 15:04:39 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Don't include <stddef.h> 2014-11-18 14:19:27 +00:00
libcxx libc++: support NaCl when building thread.cpp 2014-12-02 17:30:19 +00:00
libcxxabi Fix comment on end of #endif to match #if 2014-11-25 03:19:02 +00:00
lld Disable warning 4530 for MSVC builds. 2014-12-02 17:57:54 +00:00
lldb Fix the behavior of ${current-pc-arrow} in the default disassembly 2014-12-02 00:26:21 +00:00
llgo Initial commit of llgo third_party. 2014-11-27 00:12:26 +00:00
llvm [MachineCSE] Clear kill-flag on registers imp-def'd by the CSE'd instruction. 2014-12-02 18:09:51 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Drop unused enum value 2014-11-30 15:57:07 +00:00