i965: Eliminate dead code more aggressively.
authorEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 02:44:34 +0000 (10:44 +0800)
committerEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 03:16:14 +0000 (11:16 +0800)
commit50b4508319cc5277d51a38065850eaa092afc0d4
treecbedd85f35b5de1d05a6d480b2ca58c45f3fe7dc
parent48af60b46540a30c3754f0e59801a62dfb1a146d
i965: Eliminate dead code more aggressively.

If an instruction writes reg but nothing later uses it, then we don't
need to bother doing it.  Before, we were just killing code that was
never read after it was ever written.

This removes many interpolation instructions for attributes with only
a few comopnents used.  Improves nexuiz high-settings performance .46%
+/- .12% (n=3) on my Ironlake.
src/mesa/drivers/dri/i965/brw_fs.cpp