From c3661decc3e6b38173a958c2518dafbce7d6585a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 7 Oct 2009 00:42:52 +0000 Subject: 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 --- clang/lib/Analysis/BugReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis/BugReporter.cpp') 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; -- cgit v1.2.3