mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
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
This commit is contained in:
parent
d8642125e4
commit
09adbbc99e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user