diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-11-25 18:21:25 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-11-25 18:21:25 +0000 |
commit | e31267dd9a2619c223da0578e1765fcd88ec440a (patch) | |
tree | 64630da7f1c980a5762e4833e6920dff071173f2 /lib | |
parent | 8b938664f29e7634b401368f018a398de4c54100 (diff) | |
download | external_llvm-e31267dd9a2619c223da0578e1765fcd88ec440a.zip external_llvm-e31267dd9a2619c223da0578e1765fcd88ec440a.tar.gz external_llvm-e31267dd9a2619c223da0578e1765fcd88ec440a.tar.bz2 |
Keep global nodes in each DS Graph (by forcing them to be marked live).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/DataStructure/DataStructure.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp index 94c1f85..fe72bfe 100644 --- a/lib/Analysis/DataStructure/DataStructure.cpp +++ b/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); |