i965/fs: Add an optimization pass to remove redundant flags movs.
authorEric Anholt <eric@anholt.net>
Fri, 14 Feb 2014 23:29:01 +0000 (15:29 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 20 Feb 2014 18:15:13 +0000 (10:15 -0800)
commit9e3cab8881626edd72d222f35c5d2a5fd9661bce
tree4f0ffe861cb912bd57c4a015e886807193d5daee
parentb2b2a2c06c20f3ca592af6e96222deab67ea239c
i965/fs: Add an optimization pass to remove redundant flags movs.

We generate steaming piles of these for the centroid workaround, and this
quickly cleans them up.

total instructions in shared programs: 1591228 -> 1590047 (-0.07%)
instructions in affected programs:     26111 -> 24930 (-4.52%)
GAINED:                                0
LOST:                                  0

(Improved apps are l4d2, csgo, and dolphin)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h