From: Jason Ekstrand Date: Mon, 4 Mar 2019 22:17:02 +0000 (-0600) Subject: nir/deref: Expose nir_opt_deref_impl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f25ca337b40f1d5846ac146f00fba77b1610be37;p=mesa.git nir/deref: Expose nir_opt_deref_impl Reviewed-by: Matt Turner Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index c550f8339ed..5d6b15bc42f 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -3325,6 +3325,7 @@ bool nir_opt_dead_cf(nir_shader *shader); bool nir_opt_dead_write_vars(nir_shader *shader); +bool nir_opt_deref_impl(nir_function_impl *impl); bool nir_opt_deref(nir_shader *shader); bool nir_opt_find_array_copies(nir_shader *shader); diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index 752bd7f8673..c07a8c50691 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -708,7 +708,7 @@ opt_deref_ptr_as_array(nir_builder *b, nir_deref_instr *deref) return true; } -static bool +bool nir_opt_deref_impl(nir_function_impl *impl) { bool progress = false;