glsl/opt_cpe: Kill when the assignment isn't something we recognize.
authorEric Anholt <eric@anholt.net>
Sun, 3 Apr 2011 03:17:17 +0000 (20:17 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 13 Apr 2011 17:51:03 +0000 (10:51 -0700)
commit487debfda56ad3855db655688186401b0dd75233
treeaf08c9930876428de0c105220e9fc9408d630cfe
parentb9c8b2a1f1b2fe2e02b314790ebdc465f0ffec6e
glsl/opt_cpe: Kill when the assignment isn't something we recognize.

A few GLES2 tests tripped over this when using array dereferences to
hit channels on the LHS (see piglit test
glsl-copy-propagation-vector-indexing).  We wouldn't find the
ir_dereference_variable, and assume that that meant that it wasn't an
assignment to a scalar/vector, and thus not notice that the variable
had been changed.
src/glsl/opt_copy_propagation_elements.cpp