On 6/11/23 21:38, Jin Ma wrote:

Why do you need a different cost based on what's in the ready list?
Isn't the only property we're looking for whether or not the USE/CLOBBER
opens a live range?

Jeff

For this, I found that if I only look for the USE/CLOBBER  that opens a live 
range,
when there is only the USE/CLOBBERs left in the ready list, there will be an 
infinite
loop, because we will always postpone it to the next cycle(cost = 1), causing 
it to
never be emitted and always be in the ready list.

So I think (may not be correct) when there is only the USE/CLOBBERs left in the 
ready
list, the cost should be set to 0, and the USE/CLOBBER can be emitted 
immediately.

Maybe there's a better way?
Yea, I guess this makes sense. Let me take a look at your V2 with that in mind.

Sorry for the long delays here.

jeff

Reply via email to