summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-03 21:55:28 +0000
committerChris Lattner <sabre@nondot.org>2002-10-03 21:55:28 +0000
commit9df1cf30344e675adc9b5fe2e88f98ca9a3f7274 (patch)
treef9465cd68bb1880b8737f03515b88daec9fbc96c /llvm/lib/Analysis/DataStructure/DataStructure.cpp
parent9dfb9f44cce65855923fe712bff162cf667346fc (diff)
downloadbcm5719-llvm-9df1cf30344e675adc9b5fe2e88f98ca9a3f7274.tar.gz
bcm5719-llvm-9df1cf30344e675adc9b5fe2e88f98ca9a3f7274.zip
Prune function nodes that are no longer referenced due to inlining
llvm-svn: 4036
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index f50c8ea6cfb..0c4362b3756 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/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...
OpenPOWER on IntegriCloud