[PATCH] Skip some unnecessary type checks.
sbenza at google.com
Mon Dec 1 13:51:49 PST 2014
Skip some unnecessary type checks wrt DynTypedNodes.
Add DynTypedNode::getUnchecked() to skip the runtime check when the type
Speed up DynTypedNode::operator== by using isSame() instead of
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%.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4113 bytes
Desc: not available
More information about the cfe-commits