From 3f5e8b85f71210c5da36cbe012bfcdc1b2255f0d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 2 Aug 2023 10:19:33 -0400 Subject: [PATCH] nir: Drop no-op all_srcs_are_ssa MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alyssa Rosenzweig Reviewed-by: Faith Ekstrand Reviewed-by: Marek Olšák Part-of: --- src/compiler/nir/nir_opt_rematerialize_compares.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/compiler/nir/nir_opt_rematerialize_compares.c b/src/compiler/nir/nir_opt_rematerialize_compares.c index 16ae6c0..7bcb70a 100644 --- a/src/compiler/nir/nir_opt_rematerialize_compares.c +++ b/src/compiler/nir/nir_opt_rematerialize_compares.c @@ -58,16 +58,6 @@ is_two_src_comparison(const nir_alu_instr *instr) } static bool -all_srcs_are_ssa(const nir_alu_instr *instr) -{ - for (unsigned i = 0; i < nir_op_infos[instr->op].num_inputs; i++) { - } - - return true; -} - - -static bool all_uses_are_bcsel(const nir_alu_instr *instr) { nir_foreach_use(use, &instr->dest.dest.ssa) { @@ -103,9 +93,6 @@ nir_opt_rematerialize_compares_impl(nir_shader *shader, nir_function_impl *impl) if (!is_two_src_comparison(alu)) continue; - if (!all_srcs_are_ssa(alu)) - continue; - if (!all_uses_are_bcsel(alu)) continue; -- 2.7.4