glsl: If an "if" has no "then" or "else" code left, remove it.
authorEric Anholt <eric@anholt.net>
Fri, 16 Mar 2012 22:44:25 +0000 (15:44 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 14 Apr 2012 00:13:23 +0000 (17:13 -0700)
commit3f349d4e18d8c114a34fc3c36e1dc55345c1cc31
tree1272795e7fbe64779ab52f1f685b57bb17976235
parent8bb0091e6838aeee2a5819850c334fde71b5a439
glsl: If an "if" has no "then" or "else" code left, remove it.

Cuts 8/1068 instructions from glyphy's fragment shaders on i965.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/opt_if_simplification.cpp