Set the 'cached digest' flag after computing the digest for an
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Sep 2009 04:21:34 +0000 (04:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Sep 2009 04:21:34 +0000 (04:21 +0000)
commit9bd2acb3b253c77dd1f7680a2e6505039e9c49a5
tree7090c479c5c6cf5d1373e0e917b3fffa1a92b9f8
parent2f0adae973010f659909b77041b6cd674953d9b1
Set the 'cached digest' flag after computing the digest for an
ImutAVLTree.  This was accidentally left out, and essentially caused
digest caching to be ignored in ImmutableMap and ImmutableSet (this
bug was detected from shark traces that showed ComputeDigest was in
the hot path in the clang static analyzer).

This reduces the running time of the clang static analyzer on an
example benchmark by ~32% for both RegionStore (field-sensitivty) and
BasicStore (without field-sensitivity).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80877 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ImmutableSet.h