diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-24 21:17:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-24 21:17:27 +0000 |
commit | 09adbbc99e6e7721fc17f73588dee3eaa93c33bb (patch) | |
tree | 9855ff96c0e4b36d23af724e3292c730bcad63ac /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | d8642125e4a5c1d5b9572d9eb544bc3d5c1a2e70 (diff) |
only look at successors of globals. This gets us down to "only" 22s in the
bu pass for 176.gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 2b5dfd6eb7..ae4d51b343 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -1448,10 +1448,15 @@ void DSGraph::mergeInGraph(const DSCallSite &CS, DSScalarMap GSM = Graph.getScalarMap(); for (DSScalarMap::global_iterator GI = GSM.global_begin(), - E = GSM.global_end(); GI != E; ++GI) - if (PathExistsToClonedNode(Graph.getNodeForValue(*GI).getNode(), RC, - NodesReachCopiedNodes)) - GlobalsToCopy.push_back(*GI); + E = GSM.global_end(); GI != E; ++GI) { + DSNode *GlobalNode = Graph.getNodeForValue(*GI).getNode(); + for (DSNode::edge_iterator EI = GlobalNode->edge_begin(), + EE = GlobalNode->edge_end(); EI != EE; ++EI) + if (PathExistsToClonedNode(EI->getNode(), RC, NodesReachCopiedNodes)) { + GlobalsToCopy.push_back(*GI); + break; + } + } // Copy aux calls that are needed. for (unsigned i = 0, e = AuxCallToCopy.size(); i != e; ++i) |