[Mesa-dev] [PATCH 3/6] i965/vec4: Allow constant propagation into dot product.

Matt Turner mattst88 at gmail.com
Mon Mar 10 15:54:50 PDT 2014


total instructions in shared programs: 1667088 -> 1667055 (-0.00%)
instructions in affected programs:     3362 -> 3329 (-0.98%)
---
 src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
index c8feff8..3d68f0e 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -95,6 +95,10 @@ try_constant_propagation(vec4_instruction *inst, int arg, src_reg *values[4])
       inst->src[arg] = value;
       return true;
 
+   case BRW_OPCODE_DP2:
+   case BRW_OPCODE_DP3:
+   case BRW_OPCODE_DP4:
+   case BRW_OPCODE_DPH:
    case BRW_OPCODE_BFI1:
    case BRW_OPCODE_ASR:
    case BRW_OPCODE_SHL:
-- 
1.8.3.2



More information about the mesa-dev mailing list