mesa: move declaration before code

This commit is contained in:
Brian Paul
2010-10-22 08:59:06 -06:00
parent 67f6a4a8c4
commit dd2499b484
+2 -1
View File
@@ -398,11 +398,12 @@ ra_get_best_spill_node(struct ra_graph *g)
for (n = 0; n < g->count; n++) {
float cost = g->nodes[n].spill_cost;
float benefit;
if (cost <= 0.0)
continue;
float benefit = ra_get_spill_benefit(g, n);
benefit = ra_get_spill_benefit(g, n);
if (benefit / cost > best_benefit) {
best_benefit = benefit / cost;