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.cpp Wed 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 (isa<Instruction>(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