diff options
author | Alejandro Piñeiro <[email protected]> | 2019-12-13 14:57:37 +0100 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2019-12-13 17:14:58 +0100 |
commit | 2865d79a33c120e512d5619b1f1fdcfdcbe50fa8 (patch) | |
tree | b36d118e0462b5e32361af18eadfc263e84349d8 /src/compiler | |
parent | 7c972eba40acdaf30610110024f374cc60a42748 (diff) |
nir/opt_peephole_select: remove unused variables
To avoid "unused variable" warnings.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir_opt_peephole_select.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_opt_peephole_select.c b/src/compiler/nir/nir_opt_peephole_select.c index 869f663a89a..25b96cc1ba0 100644 --- a/src/compiler/nir/nir_opt_peephole_select.c +++ b/src/compiler/nir/nir_opt_peephole_select.c @@ -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 |