[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp

Vikram Adve vadve at cs.uiuc.edu
Mon Nov 25 12:22:01 PST 2002


Changes in directory llvm/lib/Analysis/DataStructure:

DataStructure.cpp updated: 1.68 -> 1.69

---
Log message:

Keep global nodes in each DS Graph (by forcing them to be marked live).


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.68 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.69
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.68	Mon Nov 18 15:44:46 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp	Mon Nov 25 12:21:25 2002
@@ -997,10 +997,10 @@
   // 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);





More information about the llvm-commits mailing list