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

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Feb 23 10:47:12 PST 2012


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.

/jakob




More information about the llvm-commits mailing list