i965/fs: Allow saturate propagation to propagate negations into MULs.
authorMatt Turner <mattst88@gmail.com>
Wed, 28 Jan 2015 06:46:22 +0000 (22:46 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 25 Feb 2016 18:51:10 +0000 (10:51 -0800)
commit7b6113bc2d3493f5b7dcf00c51eb1e90a477d067
tree9a81e4f598ab55f1aa59f7c9be180aef70c1976c
parent1567da1e2820d4c1a6c14f4598ad3addba6bc788
i965/fs: Allow saturate propagation to propagate negations into MULs.

Allows us to transform

   mul      res  src0   src1
   mov.sat  dst  -res

into

   mul.sat  dst  src0  -src1

instructions in affected programs: 45246 -> 45054 (-0.42%)
helped: 162

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp
src/mesa/drivers/dri/i965/test_fs_saturate_propagation.cpp