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

Chris Lattner lattner at cs.uiuc.edu
Thu Mar 3 20:32:46 PST 2005



Changes in directory llvm-poolalloc/lib/PoolAllocate:

PointerCompress.cpp updated: 1.39 -> 1.40
---
Log message:

We went through all the trouble to figure out the proper place to insert this
instruction, why not use it?


---
Diffs of the changes:  (+2 -2)

 PointerCompress.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp
diff -u llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.39 llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.40
--- llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp:1.39	Thu Mar  3 21:44:47 2005
+++ llvm-poolalloc/lib/PoolAllocate/PointerCompress.cpp	Thu Mar  3 22:32:30 2005
@@ -255,8 +255,8 @@
       while (isa<AllocaInst>(IP)) ++IP;
       Constant *Zero = Constant::getNullValue(Type::UIntTy);
       Value *BasePtrPtr = new GetElementPtrInst(getPoolDesc(), Zero, Zero,
-                                                "poolbaseptrptr", &I);
-      PoolBase = new LoadInst(BasePtrPtr, "poolbaseptr", &I);
+                                                "poolbaseptrptr", IP);
+      PoolBase = new LoadInst(BasePtrPtr, "poolbaseptr", IP);
     }
     
     assert(PoolBase && "Mixing and matching optimized vs not!");






More information about the llvm-commits mailing list