Mesa (master): intel/fs: Remove unused condition from opt_algebraic case

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 12 20:49:19 UTC 2019


Module: Mesa
Branch: master
Commit: 066d2aebc0046abcc8030a8429efbcdd7bf60080
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=066d2aebc0046abcc8030a8429efbcdd7bf60080

Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date:   Wed Apr 10 15:37:31 2019 -0700

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 <sagar.ghuge at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

---

 src/intel/compiler/brw_fs.cpp | 5 -----
 1 file changed, 5 deletions(-)

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:




More information about the mesa-commit mailing list