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

Chris Lattner lattner at cs.uiuc.edu
Mon Jun 16 07:09:05 PDT 2003


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.52 -> 1.53

---
Log message:

Nodes get forwarded when they are collapsed currently.


---
Diffs of the changes:

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.52 llvm/lib/Analysis/DataStructure/Local.cpp:1.53
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.52	Mon Mar  3 11:13:31 2003
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Mon Jun 16 07:08:18 2003
@@ -110,8 +110,11 @@
     ///
     DSNode *createNode(DSNode::NodeTy NodeType, const Type *Ty = 0) {
       DSNode *N = new DSNode(NodeType, Ty, &G);   // Create the node
-      if (DisableFieldSensitivity)
+      if (DisableFieldSensitivity) {
         N->foldNodeCompletely();
+        if (DSNode *FN = N->getForwardNode())
+          N = FN;
+      }
       return N;
     }
 





More information about the llvm-commits mailing list