From: Ted Kremenek Date: Thu, 3 Sep 2009 04:21:34 +0000 (+0000) Subject: Set the 'cached digest' flag after computing the digest for an X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9bd2acb3b253c77dd1f7680a2e6505039e9c49a5;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 7c070d7a7f2..70fc1a69145 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -331,6 +331,7 @@ private: uint32_t X = ComputeDigest(getLeft(), getRight(), getValue()); Digest = X; + MarkedCachedDigest(); return X; } };