[PATCH] D45227: Instead of using std::copy, clear the vector first and add new elements. NFC.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 11:41:40 PDT 2018


dblaikie added subscribers: ruiu, dblaikie.
dblaikie added a comment.

Out of curiosity - what was the motivation for this change? I'd expect that
copy would be faster than repeated push_back (though maybe LLVM can
optimize it to match)


Repository:
  rL LLVM

https://reviews.llvm.org/D45227





More information about the llvm-commits mailing list