mesa/src
Paul Berry a5eecb246d glsl: Handle empty if statement encountered during loop analysis.
The is_loop_terminator() function was asserting that the following
kind of if statement could never occur:

    if (...) { } else { }

(presumably based on the assumption that such an if statement would be
eliminated by previous optimization stages).  But that isn't the
case--it's possible that previous optimization stages might simplify
more complex code down to this empty if statement, in which case it
won't be eliminated until the next time through the optimization loop.

So is_loop_terminator() needs to handle it.  Fortunately it's easy to
handle--it's not a loop terminator because it does nothing.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64330
CC: mesa-stable@lists.freedesktop.org

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-07-25 09:37:02 -07:00
..
egl egl/build: Remove unused GLAPI_LIB. 2013-07-22 10:48:45 -07:00
gallium draw: fix vertex id computation 2013-07-25 02:02:59 -04:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Handle empty if statement encountered during loop analysis. 2013-07-25 09:37:02 -07:00
glx Apple: glFlush() is not needed with CGLFlushDrawable() 2013-07-20 10:25:28 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi build: Add tests directories to SUBDIRS 2013-07-22 10:48:45 -07:00
mesa i965: Initialize inout_offset parameter to brw_search_cache(). 2013-07-25 09:36:15 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00