From 021decc82d843c69363d3d6ee1a202613911c61c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 2 Apr 2005 19:17:18 +0000 Subject: Change the ActualCallees callgraph from hash_multimap to std::set> to avoid duplicate entries. This speeds up the CompleteBU pass from 1.99s to .15s on povray and the eqgraph passes from 1.5s to .16s on the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21031 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/DataStructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Analysis/DataStructure/DataStructure.cpp') diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 7bad52ac3c..cd16e993ad 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -2055,7 +2055,7 @@ void DSGraph::removeDeadNodes(unsigned Flags) { GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode())); // Make sure that all globals are cloned over as roots. - if (!(Flags & DSGraph::RemoveUnreachableGlobals)) { + if (!(Flags & DSGraph::RemoveUnreachableGlobals) && GlobalsGraph) { DSGraph::ScalarMapTy::iterator SMI = GlobalsGraph->getScalarMap().find(I->first); if (SMI != GlobalsGraph->getScalarMap().end()) -- cgit v1.2.3-70-g09d2