i965/vec4: Eliminate dead writes to the flag register.
authorMatt Turner <mattst88@gmail.com>
Wed, 19 Mar 2014 02:19:02 +0000 (19:19 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 24 Mar 2014 18:06:26 +0000 (11:06 -0700)
commit764e25d79dad3096274ab2df04f5aa3ffb232119
tree632d9fcf1e59ed60f9f7ce789d577ff008d2f3c1
parent9cd51bb0c4608258199c69bc7738e72f055799d2
i965/vec4: Eliminate dead writes to the flag register.

For each write, search previous instructions for unread writes to the
flag register and remove them. Note that this will not eliminate the
last unread write.

total instructions in shared programs: 788074 -> 788004 (-0.01%)
instructions in affected programs:     4930 -> 4860 (-1.42%)

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.cpp