glsl: Consider the "else" branch when looking for loop breaks.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Dec 2010 23:33:56 +0000 (15:33 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Dec 2010 00:42:05 +0000 (16:42 -0800)
commit13c45c590b69341487acf21f339bf1e502eedee6
treea16276002e4996646440e1754fe898257cd6477d
parent528fa8ce329c22d6376d075c2afa69f177423bfa
glsl: Consider the "else" branch when looking for loop breaks.

Found this bug by code inspection.  Based off the comments just before
this code, the intent is to find whether the break exists in the "then"
branch or the "else" branch.  However, the code actually looked at the
last instruction in the "then" branch twice.
src/glsl/loop_unroll.cpp