ra: Fix register spilling.
authorEric Anholt <eric@anholt.net>
Thu, 6 Jun 2013 20:21:21 +0000 (13:21 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 08:07:11 +0000 (01:07 -0700)
commitda00782ed81776473270028cda262c913d737438
treef5078ace414e8419f12085098115a6a69a166a19
parentc6d74a4992474b530fac2d66c27117e172a5c15c
ra: Fix register spilling.

Commit 551c991606e543c3a264a762026f11348b37947e tried to avoid spilling
registers that were trivially colorable.  But since we do optimistic
coloring, the top of the stack also contains nodes that are not trivially
colorable, so we need to consider them for spilling (since they are some
of our best candidates).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58384
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63674
NOTE: This is a candidate for the 9.1 branch.
src/mesa/program/register_allocate.c