diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-28 03:24:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-28 03:24:41 +0000 |
commit | 68e4bb2b1366bbd67bb4f88cebcd8aa9e6a09769 (patch) | |
tree | 54acf20736f4e1c117fceae0fea839b4ba556249 /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 5e14d69d6ba113ab0adfe58f3fa810e9705846d1 (diff) | |
download | bcm5719-llvm-68e4bb2b1366bbd67bb4f88cebcd8aa9e6a09769.tar.gz bcm5719-llvm-68e4bb2b1366bbd67bb4f88cebcd8aa9e6a09769.zip |
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
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 0e7d3e69b9d..9f8a4ef4b51 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp @@ -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"); |