summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-10-07 00:42:52 +0000
committerTed Kremenek <kremenek@apple.com>2009-10-07 00:42:52 +0000
commitc3661decc3e6b38173a958c2518dafbce7d6585a (patch)
tree82b31f11da9d99a2b3ae548dae4ca1123ce39872 /clang/lib/Analysis/BugReporter.cpp
parent3ea4ab8e79cfdafae25e09642daccc055f392a52 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud