And mark as static at the same time.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
*
* This should be replaced by global value numbering someday.
*/
-void
+static bool
move_interpolation_to_top(nir_shader *nir)
{
+ bool progress = false;
+
nir_foreach_function(f, nir) {
if (!f->impl)
continue;
exec_list_push_head(&top->instr_list, &move[i]->node);
}
cursor_node = &move[i]->node;
+ progress = true;
}
}
}
((unsigned) nir_metadata_block_index |
(unsigned) nir_metadata_dominance));
}
+
+ return progress;
}
/**