summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-11-25 18:21:25 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-11-25 18:21:25 +0000
commit68690673adccf534d10a7bb983efe0617e4df0db (patch)
tree9ff97b812c3db4622bca03cdd638f89ca610edf4 /llvm/lib/Analysis/DataStructure/DataStructure.cpp
parent5014e38273c56f096dc365f6f499214fe1d7bdd7 (diff)
downloadbcm5719-llvm-68690673adccf534d10a7bb983efe0617e4df0db.tar.gz
bcm5719-llvm-68690673adccf534d10a7bb983efe0617e4df0db.zip
Keep global nodes in each DS Graph (by forcing them to be marked live).
llvm-svn: 4831
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index 94c1f8537e4..fe72bfe6d52 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
@@ -997,10 +997,10 @@ void DSGraph::removeDeadNodes() {
// Mark all nodes reachable by (non-global) scalar nodes as alive...
for (std::map<Value*, DSNodeHandle>::iterator I = ScalarMap.begin(),
E = ScalarMap.end(); I != E; ++I)
- if (!isa<GlobalValue>(I->first)) // Don't mark globals!
+ // if (!isa<GlobalValue>(I->first)) // Don't mark globals!
markAlive(I->second.getNode(), Alive);
- else // Keep track of global nodes
- GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode()));
+ // else // Keep track of global nodes
+ // GlobalNodes.push_back(std::make_pair(I->first, I->second.getNode()));
// The return value is alive as well...
markAlive(RetNode.getNode(), Alive);
OpenPOWER on IntegriCloud