diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-17 04:58:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-17 04:58:10 +0000 |
commit | 3cc061c0e972e6ffffd6969c3f022ac82cb163aa (patch) | |
tree | c027113c1602170ee2167a12c40c155da62e517b /lib/Analysis/DataStructure/BottomUpClosure.cpp | |
parent | 19db0492b85f6c92aebefffeb269c2078b043a3f (diff) |
Remove obsolete code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 1f48b65202..7601524dd2 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -113,9 +113,6 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { #if 0 // Populate the GlobalsGraph with globals from this one. Graph->GlobalsGraph->cloneGlobals(*Graph, /*cloneCalls*/ false); - - // Save a copy of the original call nodes for the top-down pass - Graph->saveOrigFunctionCalls(); #endif // Start resolving calls... @@ -123,16 +120,6 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { DEBUG(std::cerr << " [BU] Inlining: " << F.getName() << "\n"); -#if 0 - // Add F to the PendingCallers list of each direct callee for use in the - // top-down pass so we don't have to compute this again. We don't want - // to do it for indirect callees inlined later, so remember which calls - // are in the original FCs set. - std::set<const DSNode*> directCallees; - for (unsigned i = 0; i < FCs.size(); ++i) - directCallees.insert(FCs[i][1]); // ptr to function node -#endif - bool Inlined; do { Inlined = false; @@ -209,12 +196,6 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { // MergeGlobalNodes(*Graph, OldValMap); -#if 0 - // If this was an original call, add F to the PendingCallers list - if (directCallees.find(Call[1]) != directCallees.end()) - GI.addCaller(F); -#endif - // Erase the entry in the Callees vector Callees.erase(Callees.begin()+c--); @@ -250,13 +231,6 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { } } while (Inlined && !FCs.empty()); -#if 0 - // Copy any unresolved call nodes into the Globals graph and - // filter out unresolved call nodes inlined from the callee. - if (!FCs.empty()) - Graph->GlobalsGraph->cloneCalls(*Graph); -#endif - Graph->maskIncompleteMarkers(); Graph->markIncompleteNodes(); Graph->removeTriviallyDeadNodes(false); |