gallium/ntt: Drop reindexing of SSA defs and regs.
authorEric Anholt <eric@anholt.net>
Fri, 13 Nov 2020 20:29:39 +0000 (12:29 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Dec 2020 23:02:12 +0000 (23:02 +0000)
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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7658>

src/gallium/auxiliary/nir/nir_to_tgsi.c

index a158c72..afea0fe 100644 (file)
@@ -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);