mesa: move declarations before code
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
15085b477b
commit
d43548ca37
|
@ -630,9 +630,10 @@ ra_get_best_spill_node(struct ra_graph *g)
|
||||||
* colored that we couldn't manage to color in ra_select().
|
* colored that we couldn't manage to color in ra_select().
|
||||||
*/
|
*/
|
||||||
for (i = g->stack_optimistic_start; i < g->stack_count; i++) {
|
for (i = g->stack_optimistic_start; i < g->stack_count; i++) {
|
||||||
|
float cost, benefit;
|
||||||
|
|
||||||
n = g->stack[i];
|
n = g->stack[i];
|
||||||
float cost = g->nodes[n].spill_cost;
|
cost = g->nodes[n].spill_cost;
|
||||||
float benefit;
|
|
||||||
|
|
||||||
if (cost <= 0.0)
|
if (cost <= 0.0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue