From f25ca337b40f1d5846ac146f00fba77b1610be37 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Mar 2019 16:17:02 -0600 Subject: nir/deref: Expose nir_opt_deref_impl Reviewed-by: Matt Turner Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir.h | 1 + src/compiler/nir/nir_deref.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/nir') 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; -- cgit v1.2.3