i965/vec4: Consider sources of non-GRF-dst instructions for dead channels.
authorMatt Turner <mattst88@gmail.com>
Tue, 1 Apr 2014 21:05:39 +0000 (14:05 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 5 Apr 2014 16:47:36 +0000 (09:47 -0700)
commit20dee82a75ac7415fba0b3540a1f99d60b2325db
tree961791c8e4607063778d8b53ac32356e04a61586
parent63d57f3b086db1e403df5d8f61a368df5e2f5afc
i965/vec4: Consider sources of non-GRF-dst instructions for dead channels.

Previously we'd ignore the sources of instructions with non-GRF
destinations when calculating calculating the dead channels. This would
lead to us incorrectly removing the first instruction in this sequence:

   mov vgrf11, ...
   cmp.ne.f0 null, vgrf11, 1.0
   mov vgrf11, ...

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76616
src/mesa/drivers/dri/i965/brw_vec4.cpp