소스 검색

nir/opt_peephole_select: remove unused variables

To avoid "unused variable" warnings.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
master
Alejandro Piñeiro 6 년 전
부모
커밋
2865d79a33
1개의 변경된 파일과 0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0
    4
      src/compiler/nir/nir_opt_peephole_select.c

+ 0
- 4
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

Loading…
취소
저장