diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-01 20:37:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-01 20:37:00 +0000 |
commit | 77408b8987085aafe968988c5e63cd57a68b799b (patch) | |
tree | be4e4d0d60600f329e9924762630811254192a88 /include/llvm/Analysis/DataStructure/EquivClassGraphs.h | |
parent | 7cc372bfc36669ce4838a85da91b491486fb6a15 (diff) |
Get rid of the EquivClassGraphArgsInfo class, and the map that held it.
We only need one instance of the vector that it contains at a time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/EquivClassGraphs.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/EquivClassGraphs.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index 320513f4e9..d49c3da0bb 100644 --- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h @@ -28,18 +28,6 @@ class Module; class Function; namespace PA { - - /// EquivClassGraphArgsInfo - Information about the set of argument nodes - /// in a DS graph (the number of argument nodes is the max of argument nodes - /// for all functions folded into the graph). - /// FIXME: This class is only used temporarily and could be eliminated. - /// - struct EquivClassGraphArgsInfo { - const DSGraph* ECGraph; - std::vector<DSNodeHandle> argNodes; - EquivClassGraphArgsInfo() : ECGraph(NULL) {} - }; - /// EquivClassGraphs - This is the same as the complete bottom-up graphs, but /// with functions partitioned into equivalence classes and a single merged /// DS graph for all functions in an equivalence class. After this merging, @@ -61,10 +49,6 @@ namespace PA { // same function pointer are in the same class. EquivalenceClasses<Function*> FuncECs; - // Each equivalence class graph contains several functions. - // Remember their argument nodes (and return nodes?) - std::map<const DSGraph*, EquivClassGraphArgsInfo> ECGraphInfo; - /// OneCalledFunction - For each indirect call, we keep track of one /// target of the call. This is used to find equivalence class called by /// a call site. @@ -112,16 +96,6 @@ namespace PA { return FuncECs.getEqClass(leaderF); } - /// getECGraphInfo - Get the graph info object with arg nodes info - /// - EquivClassGraphArgsInfo &getECGraphInfo(const DSGraph* G) { - assert(G != NULL && "getECGraphInfo: Null graph!"); - EquivClassGraphArgsInfo& GraphInfo = ECGraphInfo[G]; - if (GraphInfo.ECGraph == NULL) - GraphInfo.ECGraph = G; - return GraphInfo; - } - DSGraph &getGlobalsGraph() const { return *GlobalsGraph; } |