glsl2: Early return with visit_continue in loop_analysis::visit(ir_dereference_variab...
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Sep 2010 20:33:48 +0000 (13:33 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Sep 2010 20:36:32 +0000 (13:36 -0700)
commit956f049fd24eb5239361e68a1f27e1bebb3315a0
treebc789df701a4c2d03024b4d4ab035cf601aa7e1c
parent0427228bbc241d0b76df853812d023273b496637
glsl2: Early return with visit_continue in loop_analysis::visit(ir_dereference_variable *)

Returning early with visit_continue_with_parent prevented the
then-statements and else-statements of if-statements such as the
following from being processed:

  if (some_var) { ... } else { ... }

Fixes piglit test case glsl-fs-loop-nested-if and bugzilla #30030.
src/glsl/loop_analysis.cpp