summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-02 19:17:18 +0000
committerChris Lattner <sabre@nondot.org>2005-04-02 19:17:18 +0000
commit990ed1d2012a6a080ca35978653b18370fe2ab6a (patch)
treed57fffc9820452e0276fb7294fd29b16f6b7d2b5 /llvm/lib/Analysis/DataStructure/DataStructure.cpp
parent637e42022fc279692ccde56af94ebdbc7df2c638 (diff)
downloadbcm5719-llvm-990ed1d2012a6a080ca35978653b18370fe2ab6a.tar.gz
bcm5719-llvm-990ed1d2012a6a080ca35978653b18370fe2ab6a.zip
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. llvm-svn: 21031
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index 7bad52ac3c9..cd16e993ad6 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud