[llvm-commits] [llvm] r99883 - in /llvm/trunk: include/llvm/CodeGen/LiveInterval.h include/llvm/Support/Allocator.h lib/CodeGen/LiveInterval.cpp lib/CodeGen/LiveIntervalAnalysis.cpp lib/Support/Allocator.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Mar 30 12:17:05 PDT 2010


On 30.03.2010, at 19:00, Jakob Stoklund Olesen wrote:

> 
> On Mar 30, 2010, at 9:49 AM, Török Edwin wrote:
> 
>> On 03/30/2010 07:32 PM, Jakob Stoklund Olesen wrote:
> 
>>> A template class that is only capable of allocating one type would be safer.
>> 
>> Sounds good, the template could automatically call the destructor when
>> Reset() is called, without the need for the special Reset() method.

I quickly put together a patch that adds a templated BumpPtrAllocator and allocates all VNInfos through it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: specificbumpallocator.patch
Type: application/octet-stream
Size: 11149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100330/63fdcdce/attachment.obj>


More information about the llvm-commits mailing list