[llvm] [WIP][ADT] Avoid slow size queries on append (PR #136365)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 13:53:38 PDT 2025
================
@@ -887,8 +921,8 @@ class SmallVectorImpl : public SmallVectorTemplateBase<T> {
this->assertSafeToAddRange(From, To);
size_t NumToInsert = std::distance(From, To);
----------------
kuhar wrote:
I think this is what the `if` statement above already handles -- it's not just the empty case, unlike what the comment claims.
https://github.com/llvm/llvm-project/pull/136365
More information about the llvm-commits
mailing list