[LLVMdev] Spilling in Register allocator.

mandar shinde mndrshnd90 at gmail.com
Sat Apr 14 00:45:55 PDT 2012


Hi,

I am currently working on a simple graph coloring based register allocator
on llvm.

So far my code builds the interference graph and assigns physical registers
using the VirtRegMap. However I am facing some trouble while spilling.



I used *assignVirt2StackSlot* method of VirtRegMap and got “UNREACHABLE
EXECUTED” error.



I would like to know if simply calling this method is enough to spill the
register or whether I need to explicitly assign memory location. Also I do
not understand how the spiller object is to be used.


Any help regarding this would be appreciated.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120414/1e1a593f/attachment.html>


More information about the llvm-dev mailing list