[llvm-commits] [poolalloc] r40844 - /poolalloc/branches/SVA/lib/DSA/Local.cpp
John Criswell
criswell at uiuc.edu
Sun Aug 5 11:46:18 PDT 2007
Author: criswell
Date: Sun Aug 5 13:46:18 2007
New Revision: 40844
URL: http://llvm.org/viewvc/llvm-project?rev=40844&view=rev
Log:
Don't consider kmalloc/kfree as regular allocators.
Modified:
poolalloc/branches/SVA/lib/DSA/Local.cpp
Modified: poolalloc/branches/SVA/lib/DSA/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/SVA/lib/DSA/Local.cpp?rev=40844&r1=40843&r2=40844&view=diff
==============================================================================
--- poolalloc/branches/SVA/lib/DSA/Local.cpp (original)
+++ poolalloc/branches/SVA/lib/DSA/Local.cpp Sun Aug 5 13:46:18 2007
@@ -1747,13 +1747,17 @@
bool LocalDataStructures::runOnModule(Module &M) {
#ifdef LLVA_KERNEL
+#if 0
AllocList.push_back("kmalloc");
+#endif
AllocList.push_back("__vmalloc");
AllocList.push_back("kmem_cache_alloc");
AllocList.push_back("__alloc_bootmem");
AllocList.push_back(" __get_free_pages");
+#if 0
FreeList.push_back("kfree");
+#endif
FreeList.push_back("vfree");
FreeList.push_back("free_pages");
FreeList.push_back("kmem_cache_free");
More information about the llvm-commits
mailing list