From bbeb6be6ebc790445f6983c93f7282dde1219c83 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 10 Apr 2026 15:20:17 +0300 Subject: [PATCH] nir: expose nir_opt_dce_impl Signed-off-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/compiler/nir/nir.h | 1 + src/compiler/nir/nir_opt_dce.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);