mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Change the ActualCallees callgraph from hash_multimap<Instruction,Function>
to std::set<std::pair<Inst,Func>> to avoid duplicate entries. This speeds up the CompleteBU pass from 1.99s to .15s on povray and the eqgraph passes from 1.5s to .16s on the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2055,7 +2055,7 @@ void DSGraph::removeDeadNodes(unsigned Flags) {
|
||||
GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode()));
|
||||
|
||||
// Make sure that all globals are cloned over as roots.
|
||||
if (!(Flags & DSGraph::RemoveUnreachableGlobals)) {
|
||||
if (!(Flags & DSGraph::RemoveUnreachableGlobals) && GlobalsGraph) {
|
||||
DSGraph::ScalarMapTy::iterator SMI =
|
||||
GlobalsGraph->getScalarMap().find(I->first);
|
||||
if (SMI != GlobalsGraph->getScalarMap().end())
|
||||
|
Reference in New Issue
Block a user