i965/vec4: Let DCE eliminate dead writes in other basic blocks.
authorMatt Turner <mattst88@gmail.com>
Mon, 24 Mar 2014 20:23:13 +0000 (13:23 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 15 Apr 2014 16:24:09 +0000 (09:24 -0700)
commit596737ee91cc199a8edff5dc440736471e28f297
tree429346859a5469e5f4941f24d96f28b0a2cbcf30
parent4dcfb924176eea4f0ac892c8ec8d38090dd59d2a
i965/vec4: Let DCE eliminate dead writes in other basic blocks.

We previously stopped searching for unread writes after encountering
control flow, but we can instead just search backwards until we hit
control flow.

instructions in affected programs:     22854 -> 22194 (-2.89%)
src/mesa/drivers/dri/i965/brw_vec4.cpp