nir/liveness: stop requiring instr indices

nir_live_defs_impl() doesn't actually use them, and every
nir_metadata_require of nir_metadata_live_defs already requires them.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32005>
This commit is contained in:
Rhys Perry 2024-12-09 16:09:23 +00:00 committed by Marge Bot
parent bfc570ff98
commit 2d94ca93b5
2 changed files with 1 additions and 5 deletions

View file

@ -6762,6 +6762,7 @@ void nir_loop_analyze_impl(nir_function_impl *impl,
nir_variable_mode indirect_mask,
bool force_unroll_sampler_indirect);
/* This requires both nir_metadata_live_defs and nir_metadata_instr_index. */
bool nir_defs_interfere(nir_def *a, nir_def *b);
bool nir_repair_ssa_impl(nir_function_impl *impl);

View file

@ -134,11 +134,6 @@ nir_live_defs_impl(nir_function_impl *impl)
};
state.tmp_live = rzalloc_array(impl, BITSET_WORD, state.bitset_words),
/* Number the instructions so we can do cheap interference tests using the
* instruction index.
*/
nir_metadata_require(impl, nir_metadata_instr_index);
nir_block_worklist_init(&state.worklist, impl->num_blocks, NULL);
/* Allocate live_in and live_out sets and add all of the blocks to the