[llvm-commits] [release_19] CVS: llvm-poolalloc/lib/DSA/Local.cpp

2007-01-22 Thread John Criswell


Changes in directory llvm-poolalloc/lib/DSA:

Local.cpp updated: 1.158.2.3 - 1.158.2.4
---
Log message:

Add code that might correctly handle llva_save_stackp().


---
Diffs of the changes:  (+12 -0)

 Local.cpp |   12 
 1 files changed, 12 insertions(+)


Index: llvm-poolalloc/lib/DSA/Local.cpp
diff -u llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.3 
llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.4
--- llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.3  Wed Dec 13 17:18:48 2006
+++ llvm-poolalloc/lib/DSA/Local.cppMon Jan 22 15:18:48 2007
@@ -1232,6 +1232,18 @@
 if (DSNode *N = RetNH.getNode())
   N-setModifiedMarker()-setReadMarker();
 return true;
+#if 0
+  } else if (F-getName() == llva_save_stackp) {
+  // Create a new DSNode for the memory returned by llva_save_stackp()
+  DSNode *N = createNode();
+  N-setAllocaNodeMarker();
+
+  //
+  // TODO:
+  //  For now, don't worry about creating a meta-pool.  Stack locations
+  //  are ignored by our analysis.
+  //
+#endif
   } else if (F-getName() == __generic_copy_from_user) {
 if (CS.getCaller()-getName() == kmem_cache_alloc)
 return false;



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


[llvm-commits] [release_19] CVS: llvm-poolalloc/lib/DSA/Local.cpp

2006-12-13 Thread John Criswell


Changes in directory llvm-poolalloc/lib/DSA:

Local.cpp updated: 1.158.2.2 - 1.158.2.3
---
Log message:

By default, compile without pool inference code.


---
Diffs of the changes:  (+4 -3)

 Local.cpp |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm-poolalloc/lib/DSA/Local.cpp
diff -u llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.2 
llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.3
--- llvm-poolalloc/lib/DSA/Local.cpp:1.158.2.2  Wed Dec 13 15:58:21 2006
+++ llvm-poolalloc/lib/DSA/Local.cppWed Dec 13 17:18:48 2006
@@ -13,7 +13,6 @@
 //
 
//===--===//
 
-#define LLVA_KERNEL 1
 #include llvm/ADT/Statistic.h
 #include dsa/DataStructure.h
 #include dsa/DSGraph.h
@@ -384,6 +383,7 @@
 
 void GraphBuilder::visitGetElementPtrInst(User GEP) {
 
+#ifdef LLVA_KERNEL
 #if 1
   int debug = 0;
   if (isaInstruction(GEP)) {
@@ -400,6 +400,7 @@
 }
   }
 #endif
+#endif
 
   DSNodeHandle Value = getValueDest(*GEP.getOperand(0));
   if (Value.isNull())
@@ -436,7 +437,6 @@
 // If the node had to be folded... exit quickly
 setDestTo(GEP, Value);  // GEP result points to folded node
 
-if (debug) std::cerr  LLVA: GEP: Funny Return\n;
 return;
   }
 
@@ -551,7 +551,6 @@
   }
 #endif
 
-if (debug) std::cerr  LLVA: GEP: Normal Return\n;
 }
 
 void GraphBuilder::visitLoadInst(LoadInst LI) {
@@ -587,6 +586,7 @@
   // Avoid adding edges from null, or processing non-pointer stores
   if (isPointerType(StoredTy))
 Dest.addEdgeTo(getValueDest(*SI.getOperand(0)));
+#ifdef LLVA_KERNEL
 #if 1
   {
 if (SI.getParent()-getParent()-getName() == alloc_vfsmnt) {
@@ -597,6 +597,7 @@
 }
   }
 #endif
+#endif
 }
 
 void GraphBuilder::visitReturnInst(ReturnInst RI) {



___
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits