nir: expose nir_opt_dce_impl

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41047>
This commit is contained in:
Lionel Landwerlin 2026-04-10 15:20:17 +03:00
parent 55509ac096
commit bbeb6be6eb
2 changed files with 2 additions and 1 deletions

View file

@ -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);

View file

@ -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);