diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-07-30 22:17:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-07-30 22:17:52 +0000 |
commit | 0b01261cb070d665fc52b99f6da8b98ed09f55dd (patch) | |
tree | fa092ea4d943608d8a02c7d9fae62f7ab6c94f5e /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 9b5450f6c91e6a7c837238ff791dbcc88d5432da (diff) | |
download | llvm-0b01261cb070d665fc52b99f6da8b98ed09f55dd.zip llvm-0b01261cb070d665fc52b99f6da8b98ed09f55dd.tar.gz llvm-0b01261cb070d665fc52b99f6da8b98ed09f55dd.tar.bz2 |
Move the SmallVector unit tests to be type-parameterized so that we can
test more than a single instantiation of SmallVector.
Add testing for 0, 1, 2, and 4 element sized "small" buffers. These
appear to be essentially untested in the unit tests until now.
Fix several tests to be robust in the face of a '0' small buffer. As
a consequence of this size buffer, the growth patterns are actually
observable in the test -- yes this means that many tests never caused
a grow to occur before. For some tests I've merely added a reserve call
to normalize behavior. For others, the growth is actually interesting,
and so I captured the fact that growth would occur and adjusted the
assertions to not assume how rapidly growth occured.
Also update the specialization for a '0' small buffer length to have all
the same interface points as the normal small vector.
llvm-svn: 161001
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions