[llvm-commits] [llvm] r141849 - /llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Oct 13 09:00:58 PDT 2011


On Oct 12, 2011, at 7:38 PM, Jakob Stoklund Olesen wrote:

> 
> On Oct 12, 2011, at 7:16 PM, Nick Lewycky wrote:
> 
>> Author: nicholas
>> Date: Wed Oct 12 21:16:18 2011
>> New Revision: 141849
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=141849&view=rev
>> Log:
>> If MI is deleted then remove it from the set. If a new MI is created, it could
>> have the same address as the one we deleted, and we don't want that in the set
>> yet. Noticed by inspection.
> 
> I wonder how much more memory we would use if we didn't recycle MIs.

To answer my own question, 50% of CreateMachineInstr() calls get memory from the recycler's free list.

/jakob





More information about the llvm-commits mailing list