<p class="MsoNormal">Hi,</p>

<p class="MsoNormal">I am currently working on a simple graph coloring based
register allocator on llvm. </p>

<p class="MsoNormal">So far my code builds the interference graph and assigns
physical registers using the VirtRegMap. However I am facing some trouble while
spilling.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I used <i style>assignVirt2StackSlot</i>
method of VirtRegMap and got “UNREACHABLE EXECUTED” error. </p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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.</p>

<p class="MsoNormal"> </p>

<span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">Any help regarding this would be appreciated.<br><br>Thanks.<br></span>