diff options
| author | Samuel Benzaquen <sbenza@google.com> | 2014-10-15 14:58:46 +0000 |
|---|---|---|
| committer | Samuel Benzaquen <sbenza@google.com> | 2014-10-15 14:58:46 +0000 |
| commit | 8513d6234d00cae96811fb07fc71e8000839b7ba (patch) | |
| tree | 9b4b1adbe214c4528945dcc7012fcfdd1dbb99be /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 6b862f22e5fbda2ffd2a6241b76436de7610dc55 (diff) | |
| download | llvm-8513d6234d00cae96811fb07fc71e8000839b7ba.zip llvm-8513d6234d00cae96811fb07fc71e8000839b7ba.tar.gz llvm-8513d6234d00cae96811fb07fc71e8000839b7ba.tar.bz2 | |
Speed up hasName() matcher.
Summary:
Speed up hasName() matcher by skipping the expensive generation of the
fully qualified name unless we need it.
In the common case of matching an unqualified name, we don't need to
generate the full name. We might not even need to copy any string at
all.
This change speeds up our clang-tidy benchmark by ~10%
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D5776
llvm-svn: 219792
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
