mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Eliminate the call to removeTriviallyDeadNodes from updateFromGlobals graph,
moving it to the start of removeDeadNodes. This speeds up DSA by 2s on perlbmk from 41s llvm-svn: 10999
This commit is contained in:
parent
92eb91ed70
commit
8324e48b84
@ -1071,9 +1071,6 @@ void DSGraph::updateFromGlobalGraph() {
|
||||
if (It != GlobalsGraph->ScalarMap.end())
|
||||
RC.merge(getNodeForValue(*I), It->second);
|
||||
}
|
||||
|
||||
// Merging global nodes leaves behind unused nodes: get rid of them now.
|
||||
removeTriviallyDeadNodes();
|
||||
}
|
||||
|
||||
/// cloneInto - Clone the specified DSGraph into the current graph. The
|
||||
@ -1597,7 +1594,7 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
|
||||
|
||||
// Reduce the amount of work we have to do... remove dummy nodes left over by
|
||||
// merging...
|
||||
//removeTriviallyDeadNodes();
|
||||
removeTriviallyDeadNodes();
|
||||
|
||||
TIME_REGION(X, "removeDeadNodes");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user