nir: Unexpose _impl versions of copy_prop and dce

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand 2015-10-28 10:11:11 -07:00 committed by Kenneth Graunke
parent 4bc16ad217
commit 531be601d5
3 changed files with 2 additions and 4 deletions

View file

@ -2004,12 +2004,10 @@ bool nir_opt_constant_folding(nir_shader *shader);
bool nir_opt_global_to_local(nir_shader *shader);
bool nir_copy_prop_impl(nir_function_impl *impl);
bool nir_copy_prop(nir_shader *shader);
bool nir_opt_cse(nir_shader *shader);
bool nir_opt_dce_impl(nir_function_impl *impl);
bool nir_opt_dce(nir_shader *shader);
bool nir_opt_dead_cf(nir_shader *shader);

View file

@ -256,7 +256,7 @@ copy_prop_block(nir_block *block, void *_state)
return true;
}
bool
static bool
nir_copy_prop_impl(nir_function_impl *impl)
{
bool progress = false;

View file

@ -145,7 +145,7 @@ delete_block_cb(nir_block *block, void *_state)
return true;
}
bool
static bool
nir_opt_dce_impl(nir_function_impl *impl)
{
struct exec_list *worklist = ralloc(NULL, struct exec_list);