From: Matt Turner Date: Sun, 2 Mar 2014 17:02:17 +0000 (-0800) Subject: i965/vec4: Allow constant propagation into dot product. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d0b3ec4ae4e468ee6d69bb6f036c06aae759dcc;p=mesa.git i965/vec4: Allow constant propagation into dot product. total instructions in shared programs: 1667088 -> 1667055 (-0.00%) instructions in affected programs: 3362 -> 3329 (-0.98%) Reviewed-by: Eric Anholt --- 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 c8feff84d56..3d68f0ed5d4 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: