i965/fs: Optimize OR with identical sources into a MOV.
authorMatt Turner <mattst88@gmail.com>
Mon, 28 Oct 2013 02:34:48 +0000 (19:34 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 1 Nov 2013 22:21:07 +0000 (15:21 -0700)
commita8f76d829bdcdb5f238ba6206f1b768098745022
treeb1257e5f92d61441e30fd8e540f0e6c81e70bd20
parentfd05ede0d05ee896cf07e2f690ddb42567f9f606
i965/fs: Optimize OR with identical sources into a MOV.

Helps a lot of Steam games.

total instructions in shared programs: 1409360 -> 1409124 (-0.02%)
instructions in affected programs:     20842 -> 20606 (-1.13%)

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp