mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6d8f3dcd75
commit
a3fd88d01f
@ -1071,9 +1071,6 @@ void DSGraph::updateFromGlobalGraph() {
|
|||||||
if (It != GlobalsGraph->ScalarMap.end())
|
if (It != GlobalsGraph->ScalarMap.end())
|
||||||
RC.merge(getNodeForValue(*I), It->second);
|
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
|
/// 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
|
// Reduce the amount of work we have to do... remove dummy nodes left over by
|
||||||
// merging...
|
// merging...
|
||||||
//removeTriviallyDeadNodes();
|
removeTriviallyDeadNodes();
|
||||||
|
|
||||||
TIME_REGION(X, "removeDeadNodes");
|
TIME_REGION(X, "removeDeadNodes");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user