i965/fs: Do dead code elimination just after copy propagation.
authorEric Anholt <eric@anholt.net>
Tue, 30 Oct 2012 23:10:14 +0000 (16:10 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 4 Nov 2012 19:15:44 +0000 (11:15 -0800)
commitcf26b4569a2effc59d072ffd2b2bf9b055faab43
tree330ad17bb97b370250eb4783ac313019689876ad
parentd8988f048fd963eeddf33c682d64ebdfaa2de9ae
i965/fs: Do dead code elimination just after copy propagation.

If we put the register coalescing in between the two, then we end up with code
sequences involving dead writes that the dead code elimination doesn't know
how to remove.  In place of making dead code elimination smart (which we
should do, too), make it less important for the moment.

shader-db results:

total instructions in shared programs: 722240 -> 721275 (-0.13%)
instructions in affected programs:     50573 -> 49608 (-1.91%)

(no shaders regressed).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp