glsl2: Fix copy propagation in the presence of derefs in array indexes.
authorEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 22:32:37 +0000 (15:32 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 12 Jul 2010 23:07:02 +0000 (16:07 -0700)
commitb87259d3efeadf05556e2daf688935a038097bba
tree4fb8db72174bc2f8cb6e9407bc5d9e47803a8255
parent8258a6a2c36c9769428f4525415d6c0d565e588c
glsl2: Fix copy propagation in the presence of derefs in array indexes.

We would clear the in_lhs flag early, avoiding copy propagation on the
array index variable (oops) and then copy propagating on the array
variable (ouch).  Just avoid all copy propagation on the LHS instead.
src/glsl/ir_copy_propagation.cpp