<br><br>
<div><span class="gmail_quote">On 8/7/06, <b class="gmail_sendername">Chris Lattner</b> <<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sun, 6 Aug 2006, Anton Vayvod wrote:<br>> I'm developing a register allocator that works iteratively. It spills some
<br>> virtual registers on each iteration until all the rest have physical ones<br>> assigned.<br><br>Take a look at the linear scan allocator.  It is also iterative: it uses<br>the spiller interface to insert spill code, which creates (unspillable)
<br>intervals for the spill code it inserts.<br><br>> How can I spill some live intervals at the end of each iteration with new<br>> live intervals having correct weights?<br><br>The linscan allocator inserts spill code with infinite weight, take a look
<br>at how it works.</blockquote>
<div> </div>
<div>So, as far as I understood live intervals with weight equal to HUGE_VAL are spilled and I don't need to allocate physical registers for them, right? Shoud hasStackSlot method of VirtRegMap return true for these intervals' reg members?
</div><br> </div>