]> granicus.if.org Git - clang/commit
Avoid malloc thrashing in the uninitialized value analysis.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Sep 2012 16:44:29 +0000 (16:44 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Sep 2012 16:44:29 +0000 (16:44 +0000)
commitda3d76b4cfbb5ebeb79e03a0abeabd403fe9260a
tree70ee7143009a87d51442030911295abc756f62e6
parent1c84c68b6d7a92416493ab6c36f630de48c65d08
Avoid malloc thrashing in the uninitialized value analysis.

- The size of the packed vector is often small, save mallocs using SmallBitVector.
- Copying SmallBitVectors is also cheap, remove a level of indirection.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/UninitializedValues.cpp