forked from OSchip/llvm-project
Don't use operator[], use the new method instead, which is faster. This speeds
up the TD pass about 30% for povray and perlbmk. It's still not clear why copying a 5MB set of graphs turns into a 25MB set of graphs though :( llvm-svn: 20762
This commit is contained in:
parent
d0949a00be
commit
e05c633099
|
@ -1273,7 +1273,7 @@ void DSGraph::cloneInto(const DSGraph &G, unsigned CloneFlags) {
|
|||
for (DSScalarMap::const_iterator I = G.ScalarMap.begin(),
|
||||
E = G.ScalarMap.end(); I != E; ++I) {
|
||||
DSNodeHandle &MappedNode = OldNodeMap[I->second.getNode()];
|
||||
DSNodeHandle &H = ScalarMap[I->first];
|
||||
DSNodeHandle &H = ScalarMap.getRawEntryRef(I->first);
|
||||
DSNode *MappedNodeN = MappedNode.getNode();
|
||||
H.mergeWith(DSNodeHandle(MappedNodeN,
|
||||
I->second.getOffset()+MappedNode.getOffset()));
|
||||
|
|
Loading…
Reference in New Issue