On Fri, Jun 19, 2015 at 6:53 PM, Connor Abbott <cwabbo...@gmail.com> wrote: > I don't think this is doing what you think it's doing. This code is > for calculating the *cost* of spills, so a higher cost means a lower > priority for choosing the register. We increase the cost for things > inside loops because we don't want to spill inside loops, and by doing > the same thing for if's you're actually discouraging spills inside an > if block.
Top quoting is bad, m'kay. But, I think it is doing what he thinks since he increases costs for ENDIF and decreases costs for IF. That is, it's backwards from DO/WHILE. Why this is a good thing to do... I don't know. I'd expect some data along with this patch in order to evaluate it properly. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev