[llvm-commits] [poolalloc] r44441 - in /poolalloc/trunk/lib: DSA/DataStructure.cpp DSA/Local.cpp PoolAllocate/Heuristic.cpp PoolAllocate/PointerCompress.cpp PoolAllocate/TransformFunctionBody.cpp

2007-11-29 Thread John Criswell
Author: criswell Date: Thu Nov 29 14:37:55 2007 New Revision: 1 URL: http://llvm.org/viewvc/llvm-project?rev=1&view=rev Log: Update use of TargetData->getTypeSize() to TargetData->getABITypeSize(). I believe we want all of the sizes to including ABI padding. Modified: poolalloc/trunk/

Re: [llvm-commits] [poolalloc] r44441 - in /poolalloc/trunk/lib: DSA/DataStructure.cpp DSA/Local.cpp PoolAllocate/Heuristic.cpp PoolAllocate/PointerCompress.cpp PoolAllocate/TransformFunctionBody.cpp

2007-11-30 Thread Duncan Sands
Hi John, > Update use of TargetData->getTypeSize() to TargetData->getABITypeSize(). > I believe we want all of the sizes to including ABI padding. you need to use getABITypeSize for GEP calculations, in particular for advancing pointers or moving to the next array element (you shouldn't need this