llvm-6502/unittests
Chandler Carruth 6446d7e6d6 Add tests for *DenesMap for both key and value types' construction and
destruction and fix a bug in SmallDenseMap they caught.

This is kind of a poor-man's version of the testing that just adds the
addresses to a set on construction and removes them on destruction. We
check that double construction and double destruction don't occur.
Amusingly enough, this is enough to catch a lot of SmallDenseMap issues
because we spend a lot of time with fixed stable addresses in the inline
buffer.

The SmallDenseMap bug fix included makes grow() not double-destroy in
some cases. It also fixes a FIXME there, the code was pretty crappy. We
now don't have any wasted initialization, but we do move the entries in
inline bucket array an extra time. It's probably a better tradeoff, and
is much easier to get correct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158639 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-17 10:33:51 +00:00
..
ADT Add tests for *DenesMap for both key and value types' construction and 2012-06-17 10:33:51 +00:00
Analysis The product of two chrec's can always be represented as a chrec. 2011-10-04 06:51:26 +00:00
Bitcode Bitcode: Don't expose WriteBitcodeToStream to clients. 2012-02-29 20:30:56 +00:00
ExecutionEngine Disable JITTest.FunctionIsRecompiledAndRelinked and JITTest.NoStubs 2012-05-16 19:07:55 +00:00
Support Add some somewhat exhaustive tests of sizeof properties of this horrible 2012-06-17 09:05:04 +00:00
Transforms Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:50:00 +00:00
VMCore Fix typos found by http://github.com/lyda/misspell-check 2012-06-02 10:20:22 +00:00
CMakeLists.txt Update CMake build. 2012-06-16 10:53:58 +00:00
Makefile Undo the hack in r147427 and move this unittest to a better home. This 2012-01-02 09:19:48 +00:00
Makefile.unittest build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile 2011-12-15 23:35:08 +00:00