Substantially cleanup/speedup the eq graphs pass by walking the callgraph

a DSGraph at a time instead of a function at a time.  This is also more
correct, though it doesn't seem to fix any programs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-11-02 17:51:11 +00:00
parent e09e21dd1b
commit 033a7d5389
2 changed files with 44 additions and 49 deletions

View File

@@ -93,11 +93,10 @@ namespace PA {
private:
void buildIndirectFunctionSets(Module &M);
unsigned processSCC(DSGraph &FG, Function &F, std::vector<Function*> &Stack,
unsigned processSCC(DSGraph &FG, std::vector<DSGraph*> &Stack,
unsigned &NextID,
std::map<Function*, unsigned> &ValMap);
void processGraph(DSGraph &FG, Function &F);
std::map<DSGraph*, unsigned> &ValMap);
void processGraph(DSGraph &FG);
DSGraph &getOrCreateGraph(Function &F);
};