i965/fs: Allow saturate propagation to propagate negations into MADs.
authorMatt Turner <mattst88@gmail.com>
Wed, 11 Feb 2015 01:45:28 +0000 (17:45 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 25 Feb 2016 18:51:15 +0000 (10:51 -0800)
commit4009a9ead490ef1718e6fa83141aa086a43cd901
treee7fec99d4cdfd6cdbd0b5da0a8dbd388cb332318
parent65d3217cb03bc4be97c99300a5cc3f6190d06345
i965/fs: Allow saturate propagation to propagate negations into MADs.

Allows us to transform

   mad      res  src0   src1   src2
   mov.sat  dst  -res

into

   mad.sat  dst  -src0 -src1   src2

instructions in affected programs: 3712 -> 3688 (-0.65%)
helped: 24

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