mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 06:25:01 +00:00
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 :( llvm-svn: 10992
This commit is contained in:
parent
6d38674f7b
commit
18e0615a69
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user