diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 7d12cf3a7e2..b5919837428 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -6698,6 +6698,7 @@ bool nir_opt_copy_prop_vars(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); diff --git a/src/compiler/nir/nir_opt_dce.c b/src/compiler/nir/nir_opt_dce.c index da11e0321b0..897142c7464 100644 --- a/src/compiler/nir/nir_opt_dce.c +++ b/src/compiler/nir/nir_opt_dce.c @@ -221,7 +221,7 @@ dce_cf_list(struct exec_list *cf_list, BITSET_WORD *defs_live, return progress; } -static bool +bool nir_opt_dce_impl(nir_function_impl *impl) { assert(impl->structured);