[analyzer] Use collectSubRegionKeys to make removeDeadBindings faster.
authorJordan Rose <jordan_rose@apple.com>
Fri, 15 Feb 2013 00:32:06 +0000 (00:32 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 15 Feb 2013 00:32:06 +0000 (00:32 +0000)
commit44d877a8c75db5126fe1fd5a8b6797efd46e107a
tree0a3f944d78605bef9f9b8dec3d95162912b68d00
parent8628bc59e0e64725fdc7ffe1294583ad8ad3700e
[analyzer] Use collectSubRegionKeys to make removeDeadBindings faster.

Previously, whenever we had a LazyCompoundVal, we crawled through the
entire store snapshot looking for bindings within the LCV's region. Now, we
just ask for the subregion bindings of the lazy region and only visit those.

This is an optimization (so no test case), but it may allow us to clean up
more dead bindings than we were previously.

llvm-svn: 175230
clang/lib/StaticAnalyzer/Core/RegionStore.cpp