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

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 12 21:11:01 PST 2003


Changes in directory llvm/lib/Analysis/DataStructure:

Local.cpp updated: 1.71 -> 1.72

---
Log message:

Disable integer tracking by default


---
Diffs of the changes:  (+6 -1)

Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.71 llvm/lib/Analysis/DataStructure/Local.cpp:1.72
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.71	Wed Nov 12 17:11:14 2003
+++ llvm/lib/Analysis/DataStructure/Local.cpp	Wed Nov 12 21:10:49 2003
@@ -33,13 +33,18 @@
 static RegisterAnalysis<LocalDataStructures>
 X("datastructure", "Local Data Structure Analysis");
 
+static cl::opt<bool>
+TrackIntegersAsPointers("dsa-track-integers",
+         cl::desc("If this is set, track integers as potential pointers"));
+                        
+
 namespace llvm {
 namespace DS {
   // isPointerType - Return true if this type is big enough to hold a pointer.
   bool isPointerType(const Type *Ty) {
     if (isa<PointerType>(Ty))
       return true;
-    else if (Ty->isPrimitiveType() && Ty->isInteger())
+    else if (TrackIntegersAsPointers && Ty->isPrimitiveType() &&Ty->isInteger())
       return Ty->getPrimitiveSize() >= PointerSize;
     return false;
   }





More information about the llvm-commits mailing list