diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-03 21:55:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-03 21:55:28 +0000 |
commit | a00397e1eeaaffc21d01af612480476fe95b20a5 (patch) | |
tree | 2facc280f2e02abe88f3b60df602b5c847466691 /lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 6727ec64e8f2892dfdd0864a0ed05796f0716e31 (diff) |
Prune function nodes that are no longer referenced due to inlining
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index f50c8ea6cf..0c4362b375 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/lib/Analysis/DataStructure/DataStructure.cpp @@ -578,7 +578,7 @@ bool DSGraph::isNodeDead(DSNode *N) { N->getSize() == 0 && N->getReferrers().size() == N->getGlobals().size()) { - // Remove the globals from the valuemap, so that the referrer count will go + // Remove the globals from the ValueMap, so that the referrer count will go // down to zero. removeRefsToGlobal(N, ValueMap); assert(N->getReferrers().empty() && "Referrers should all be gone now!"); @@ -608,7 +608,7 @@ static void removeIdenticalCalls(vector<vector<DSNodeHandle> > &Calls, // void DSGraph::removeTriviallyDeadNodes(bool KeepAllGlobals) { for (unsigned i = 0; i != Nodes.size(); ++i) - if (! KeepAllGlobals || ! (Nodes[i]->NodeType & DSNode::GlobalNode)) + if (!KeepAllGlobals || !(Nodes[i]->NodeType & DSNode::GlobalNode)) if (isNodeDead(Nodes[i])) { // This node is dead! delete Nodes[i]; // Free memory... Nodes.erase(Nodes.begin()+i--); // Remove from node list... |