forked from OSchip/llvm-project
Modest speedup which seems to help steens quite a bit on large graphs
llvm-svn: 5532
This commit is contained in:
parent
e170f0db13
commit
e715357909
|
@ -906,7 +906,8 @@ void DSGraph::removeTriviallyDeadNodes() {
|
|||
if ((Node->NodeType & ~DSNode::DEAD) == 0 && Node->hasNoReferrers()) {
|
||||
// This node is dead!
|
||||
delete Node; // Free memory...
|
||||
Nodes.erase(Nodes.begin()+i--); // Remove from node list...
|
||||
Nodes[i--] = Nodes.back();
|
||||
Nodes.pop_back(); // Remove from node list...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue