From 6916d1d9247482c851e1a76e1017d04431d44268 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 13 Nov 2020 12:29:39 -0800 Subject: [PATCH] gallium/ntt: Drop reindexing of SSA defs and regs. It made the nir_print_shader() for NIR_TO_TGSI_DEBUG not match up with the instructions being emitted, confusing me. Given that I'm seeing only like 1/3 shrinking in the SSA indices, just drop the reindexing since it's not doing much (and we don't store that much per SSA index). Acked-by: Jason Ekstrand Part-of: --- src/gallium/auxiliary/nir/nir_to_tgsi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gallium/auxiliary/nir/nir_to_tgsi.c b/src/gallium/auxiliary/nir/nir_to_tgsi.c index a158c724c23..afea0feaecf 100644 --- a/src/gallium/auxiliary/nir/nir_to_tgsi.c +++ b/src/gallium/auxiliary/nir/nir_to_tgsi.c @@ -2155,12 +2155,6 @@ ntt_emit_cf_list(struct ntt_compile *c, struct exec_list *list) static void ntt_emit_impl(struct ntt_compile *c, nir_function_impl *impl) { - /* reindex values so the numbers are reasonably small despite - * optimization having deleted most of them. - */ - nir_index_ssa_defs(impl); - nir_index_local_regs(impl); - c->impl = impl; c->liveness = nir_live_ssa_defs_per_instr(impl);