[llvm-commits] [llvm] r151269 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Benjamin Kramer benny.kra at googlemail.com
Thu Feb 23 11:20:55 PST 2012


On 23.02.2012, at 19:47, Jakob Stoklund Olesen wrote:

> 
> On Feb 23, 2012, at 10:28 AM, Benjamin Kramer <benny.kra at googlemail.com> wrote:
> 
>> Author: d0k
>> Date: Thu Feb 23 12:28:32 2012
>> New Revision: 151269
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=151269&view=rev
>> Log:
>> post-ra-sched: Replace a std::set of regs with a bitvector.
>> 
>> Assuming that a single std::set node adds 3 control words, a bitvector
>> can store (3*8+4)*8=224 registers in the allocated memory of a single
>> element in the std::set (x86_64). Also we don't have to call malloc
>> for every register added.
> 
> Nice. I think you may be able to turn KillIndices into a BitVector as well.

Funny how it stores all those indices for nothing. Boolified it in r151273.

- Ben

> /jakob
> 





More information about the llvm-commits mailing list