]> granicus.if.org Git - clang/commit
[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)
commit0a0f1309d0fbeb0e77edbbc4e0b15cc330c3a28c
tree5f65a23f83cd21376e82dcbbdac95fd839325d86
parent9d688e219caa37e60975ec8d5bebe74a176c9c2b
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175230 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/RegionStore.cpp