diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-07 00:42:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-07 00:42:52 +0000 |
commit | c3661decc3e6b38173a958c2518dafbce7d6585a (patch) | |
tree | 82b31f11da9d99a2b3ae548dae4ca1123ce39872 /clang/lib/Analysis/BugReporter.cpp | |
parent | 3ea4ab8e79cfdafae25e09642daccc055f392a52 (diff) | |
download | bcm5719-llvm-c3661decc3e6b38173a958c2518dafbce7d6585a.tar.gz bcm5719-llvm-c3661decc3e6b38173a958c2518dafbce7d6585a.zip |
Change ExplodedNode to have its NodeGroups all BumpPtrAllocated, avoiding malloc() traffic when adding successors/predecessors to a node. This was done by introducing BumpVector, which is essentially SmallVector with all memory being BumpPtrAllocated (this can certainly be cleaned up or moved into llvm/ADT).
This change yields a 1.8% speed increase when running the analyzer (with -analyzer-store=region) on a small benchmark file.
llvm-svn: 83439
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 064fff47f4a..8235f4acb17 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -1432,7 +1432,7 @@ MakeReportGraph(const ExplodedGraph* G, // Link up the new node with the previous node. if (Last) - NewN->addPredecessor(Last); + NewN->addPredecessor(Last, *GNew); Last = NewN; |