i965/vec4: Allow constant propagation into dot product.
authorMatt Turner <mattst88@gmail.com>
Sun, 2 Mar 2014 17:02:17 +0000 (09:02 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 5 Apr 2014 16:52:54 +0000 (09:52 -0700)
total instructions in shared programs: 1667088 -> 1667055 (-0.00%)
instructions in affected programs:     3362 -> 3329 (-0.98%)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp

index c8feff84d5676c545d621aa8f0102e0f024dd882..3d68f0ed5d43db4fc5d6cee9adef31e1a599557b 100644 (file)
@@ -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: