From: Sagar Ghuge Date: Wed, 10 Apr 2019 22:37:31 +0000 (-0700) Subject: intel/fs: Remove unused condition from opt_algebraic case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=066d2aebc0046abcc8030a8429efbcdd7bf60080;p=mesa.git intel/fs: Remove unused condition from opt_algebraic case We will never hit a condition where we have src1 and src2 as immediate operands. Signed-off-by: Sagar Ghuge Reviewed-by: Matt Turner Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index e7118703358..c04580ad289 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -2720,11 +2720,6 @@ fs_visitor::opt_algebraic() inst->opcode = BRW_OPCODE_ADD; inst->src[2] = reg_undef; progress = true; - } else if (inst->src[1].file == IMM && inst->src[2].file == IMM) { - inst->opcode = BRW_OPCODE_ADD; - inst->src[1].f *= inst->src[2].f; - inst->src[2] = reg_undef; - progress = true; } break; case SHADER_OPCODE_BROADCAST: