nir/opt_peephole_select: remove unused variables
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 13 Dec 2019 13:57:37 +0000 (14:57 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 13 Dec 2019 16:14:58 +0000 (17:14 +0100)
To avoid "unused variable" warnings.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/nir/nir_opt_peephole_select.c

index 869f663a89a6636b6c06656b5cc6b541c254ed8c..25b96cc1ba0321ccad26d0fa13668445cabb2882 100644 (file)
@@ -152,10 +152,6 @@ block_check_for_allowed_instrs(nir_block *block, unsigned *count,
          if (!mov->dest.dest.is_ssa)
             return false;
 
-         const struct nir_block *const expected_block = mov->instr.block;
-         const nir_alu_type expected_type =
-            nir_alu_type_get_base_type(nir_op_infos[mov->op].output_type);
-
          if (alu_ok) {
             /* If the ALU operation is an fsat or a move-like operation, do
              * not count it.  The expectation is that it will eventually be