intel/fs: Remove unused condition from opt_algebraic case
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 10 Apr 2019 22:37:31 +0000 (15:37 -0700)
committerSagar Ghuge <sagar.ghuge@intel.com>
Fri, 12 Apr 2019 20:47:57 +0000 (13:47 -0700)
We will never hit a condition where we have src1 and src2 as immediate
operands.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs.cpp

index e7118703358eafe9882f70916005a083b46add14..c04580ad28930285d5a6a266fdc58c826035aec7 100644 (file)
@@ -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: