aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorBen Craig <ben.craig@codeaurora.org>2016-06-23 15:47:12 +0000
committerBen Craig <ben.craig@codeaurora.org>2016-06-23 15:47:12 +0000
commit4067e35faec08a63af3eb453ce0f84d445c8f1c7 (patch)
tree3c6a1b8fb5d4e4c92f837d0e37a0154555f693db /llvm/lib/IR/Function.cpp
parent02d5315237151cb27fe58939d76aea7048fd06cb (diff)
downloadllvm-4067e35faec08a63af3eb453ce0f84d445c8f1c7.zip
llvm-4067e35faec08a63af3eb453ce0f84d445c8f1c7.tar.gz
llvm-4067e35faec08a63af3eb453ce0f84d445c8f1c7.tar.bz2
[Analyzer] Don't cache report generation ExplodedNodes
During the core analysis, ExplodedNodes are added to the ExplodedGraph, and those nodes are cached for deduplication purposes. After core analysis, reports are generated. Here, trimmed copies of the ExplodedGraph are made. Since the ExplodedGraph has already been deduplicated, there is no need to deduplicate again. This change makes it possible to add ExplodedNodes to an ExplodedGraph without the overhead of deduplication. "Uncached" nodes also cannot be iterated over, but none of the report generation code attempts to iterate over all nodes. This change reduces the analysis time of a large .C file from 3m43.941s to 3m40.256s (~1.6% speedup). It should slightly reduce memory consumption. Gains should be roughly proportional to the number (and path length) of static analysis warnings. This patch enables future work that should remove the need for an InterExplodedGraphMap inverse map. I plan on using the (now unused) ExplodedNode link to connect new nodes to the original nodes. http://reviews.llvm.org/D21229 llvm-svn: 273572
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions