John McCall
|
b91df6e799
|
After some discussion with djg, teach SmallVector to grow from a zero
capacity and remove the workaround in SmallVector<T,0>. There are some
theoretical benefits to a N->2N+1 growth policy anyway.
llvm-svn: 112870
|
2010-09-02 21:55:03 +00:00 |
|
Benjamin Kramer
|
d62b29412b
|
Use realloc instead of malloc+memcpy when growing a POD SmallVector. A smart
realloc implementation can try to expand the allocated memory block in-place,
avoiding the copy.
llvm-svn: 105605
|
2010-06-08 11:44:30 +00:00 |
|
Chris Lattner
|
eee37b7ba5
|
now that libsystem no longer uses SmallVector, we can move
SmallVectorBase::grow_pod out of line, finally satisfying PR3758.
llvm-svn: 91529
|
2009-12-16 08:44:24 +00:00 |
|