mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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 <eric@anholt.net>
This commit is contained in:
parent
34ec1a24d6
commit
5d0b3ec4ae
1 changed files with 4 additions and 0 deletions
|
|
@ -95,6 +95,10 @@ try_constant_propagation(vec4_instruction *inst, int arg, src_reg *values[4])
|
||||||
inst->src[arg] = value;
|
inst->src[arg] = value;
|
||||||
return true;
|
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_BFI1:
|
||||||
case BRW_OPCODE_ASR:
|
case BRW_OPCODE_ASR:
|
||||||
case BRW_OPCODE_SHL:
|
case BRW_OPCODE_SHL:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue