[LLVMdev] [RFC] WebAssembly Backend

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jun 19 07:49:31 PDT 2015


> On Jun 18, 2015, at 6:47 AM, JF Bastien <jfb at google.com> wrote:
> 
> We foresee having an infinite number of locals per function, but we plan to pre-color them so that locals whose lifetimes don't interfere can be merged. We can get clever and do this in an interesting order.

The NVPTX target does this with the existing register allocator by defining 800 physical registers of each type. It means you have to deal with unwanted spill code for those programs that exhaust the 800 registers.

The greedy register allocator doesn’t scale too well along that axis IMO. I think you get something like O(#vregs x #colors-used) behavior. It’s really designed to handle a small, fixed number of physical registers.

Matthias, Quentin: How well do the SSA-based register allocator algorithms work with infinite colors available?

Thanks,
/jakob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150619/000aca1a/attachment.html>


More information about the llvm-dev mailing list