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>
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);