diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 92dc2bfb91c..b09e544be13 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -238,15 +238,6 @@ reg_create(void *mem_ctx, struct exec_list *list) return reg; } -nir_register * -nir_local_reg_create(nir_function_impl *impl) -{ - nir_register *reg = reg_create(ralloc_parent(impl), &impl->registers); - reg->index = impl->reg_alloc++; - - return reg; -} - void nir_reg_remove(nir_register *reg) { diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 1c3a6ca3d48..ed0ccf70ad9 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4127,8 +4127,6 @@ nir_shader *nir_shader_create(void *mem_ctx, const nir_shader_compiler_options *options, shader_info *si); -nir_register *nir_local_reg_create(nir_function_impl *impl); - void nir_reg_remove(nir_register *reg); /** Adds a variable to the appropriate list in nir_shader */