[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp

John Criswell criswell at cs.uiuc.edu
Wed May 25 16:46:17 PDT 2005



Changes in directory llvm-poolalloc/lib/PoolAllocate:

PointerCompress.cpp updated: 1.62 -> 1.63
---
Log message:

Make sure to run pointer compression on functions that are called from
an already pointer compressed function, even if no arguments to the
function had to be changed.
Hopefully, this fixes lots of stuff.


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

 PointerCompress.cpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.62 llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.63
--- llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.62	Wed May 18 14:56:28 2005
+++ llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp	Wed May 25 18:45:20 2005
@@ -993,7 +993,13 @@
   }
 
   // If this function doesn't require compression, there is nothing to do!
-  if (PoolsToCompress.empty()) return;
+  // However, this function still needs to be transformed; it may just be
+  // using a global pool descriptor.
+  if (PoolsToCompress.empty()) {
+    PtrComp.NoArgFunctionsCalled.push_back(Callee);
+    return;
+  }
+    
     
   // Get the clone of this function that uses compressed pointers instead of
   // normal pointers.






More information about the llvm-commits mailing list