<div dir="ltr">Hi,<div><br></div><div>I had a look at this 'calculateSpillWeightAndHint' function, spill weights are being calculated considering no of uses, defs, loops etc.</div><div>Why not these weights be used as priority, seems they are good enough to serve as priority, instead doing it by their sizes?</div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 5:39 PM jingu kang <<a href="mailto:jaykang10@gmail.com" target="_blank">jaykang10@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dangeti,<br>
<br>
As far as I know, 'calculateSpillWeightAndHint' considers loop<br>
induction variable and the spill weight affects evict and spill. If it<br>
is not enough for you, I guess you can add some heuristic code on the<br>
function.<br>
<br>
Thanks,<br>
JinGu Kang<br>
2018년 10월 30일 (화) 오전 11:51, Dangeti Tharun kumar via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>>님이 작성:<br>
><br>
> Hi,<br>
><br>
> In the Greedy RA, I see that the enqueue method adds higher priority to the live intervals based on their sizes.<br>
><br>
> Isn't it makes sense to give priority to live intervals that start and end in a loop? Please let me know if the code is already achieving it in some way.<br>
> Also consider correcting me, if this approach is wrong.<br>
><br>
> --<br>
> Regards,<br>
> DTharun<br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_8872274527682781832m_-3654178525767916043gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Regards,</div><div>DTharun</div></div></div></div></div></div></div></div></div>