diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-02 19:17:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-02 19:17:18 +0000 |
commit | 021decc82d843c69363d3d6ee1a202613911c61c (patch) | |
tree | 885dc36165581cd92ccdb404d81cba5c19f1ace2 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | df968b8b37d93c105ced41bea5d3231ee171a24e (diff) |
Change the ActualCallees callgraph from hash_multimap<Instruction,Function>
to std::set<std::pair<Inst,Func>> 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
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |