mesa: move declarations before code

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2013-06-26 13:36:38 -06:00
parent 15085b477b
commit d43548ca37
1 changed files with 3 additions and 2 deletions

View File

@ -630,9 +630,10 @@ ra_get_best_spill_node(struct ra_graph *g)
* colored that we couldn't manage to color in ra_select().
*/
for (i = g->stack_optimistic_start; i < g->stack_count; i++) {
float cost, benefit;
n = g->stack[i];
float cost = g->nodes[n].spill_cost;
float benefit;
cost = g->nodes[n].spill_cost;
if (cost <= 0.0)
continue;