Further reduce the number of nodes cloned with getClonedNH, using merge instead.

This reduces the number of nodes allocated, then immediately merged and DNE'd
from 2193852 to 1298049.  unfortunately this only speeds DSA up by ~1.5s (of
53s), because it's spending most of its time waddling through the scalar map :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-01-28 02:11:49 +00:00
parent 00948c05b2
commit 239644dc3b

View File

@ -1070,7 +1070,7 @@ void DSGraph::updateFromGlobalGraph() {
if (InlinedGlobals.count(GV) == 0) { // GNode is not up-to-date
ScalarMapTy::iterator It = GlobalsGraph->ScalarMap.find(GV);
if (It != GlobalsGraph->ScalarMap.end())
RC.getClonedNH(It->second);
RC.merge(I->second, It->second);
}
// Merging global nodes leaves behind unused nodes: get rid of them now.