diff options
author | David Blaikie <dblaikie@gmail.com> | 2017-06-02 17:24:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2017-06-02 17:24:26 +0000 |
commit | b6b42e018a808818df9ceecee57ff7b176a68a2b (patch) | |
tree | c8d69fef4ecd1a6e60aebf34602f016ef28ed32b /llvm/lib/Analysis | |
parent | 0f02bbc6f4f24c71120147a11fc2edd27acc5b6d (diff) | |
download | bcm5719-llvm-b6b42e018a808818df9ceecee57ff7b176a68a2b.tar.gz bcm5719-llvm-b6b42e018a808818df9ceecee57ff7b176a68a2b.zip |
Tidy up a bit of r304516, use SmallVector::assign rather than for loop
This might give a few better opportunities to optimize these to memcpy
rather than loops - also a few minor cleanups (StringRef-izing,
templating (to avoid std::function indirection), etc).
The SmallVector::assign(iter, iter) could be improved with the use of
SFINAE, but the (iter, iter) ctor and append(iter, iter) need it to and
don't have it - so, workaround it for now rather than bothering with the
added complexity.
(also, as noted in the added FIXME, these assign ops could potentially
be optimized better at least for non-trivially-copyable types)
llvm-svn: 304566
Diffstat (limited to 'llvm/lib/Analysis')
0 files changed, 0 insertions, 0 deletions