Mesa (master): gallium/ntt: Drop reindexing of SSA defs and regs.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 11 23:21:35 UTC 2020
Module: Mesa
Branch: master
Commit: 6916d1d9247482c851e1a76e1017d04431d44268
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6916d1d9247482c851e1a76e1017d04431d44268
Author: Eric Anholt <eric at anholt.net>
Date: Fri Nov 13 12:29:39 2020 -0800
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 <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7658>
---
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);
More information about the mesa-commit
mailing list