glsl: Replace most assertions with unreachable()
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Jul 2016 00:38:19 +0000 (17:38 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 30 Aug 2016 23:28:03 +0000 (16:28 -0700)
commitaee9ab7de7079d849ed28519fe4e9de7e8eb96e0
tree96859eaffe8957e3b8aa1b8106f05cc578fb4746
parentdd574be54c5b6769a6a1a7d939759dc25b6b97bd
glsl: Replace most assertions with unreachable()

   text    data     bss     dec     hex filename
7669233  277176   28624 7975033  79b079 i965_dri.so before generated code
7647081  277176   28624 7952881  7959f1 i965_dri.so before this commit
7669289  277176   28624 7975089  79b0b1 i965_dri.so with this commit

Looking at the generated assembly, it appears that some of changes made
in the generated code prevent some loops from being unrolled.  Removing
the default cases (via unreachable()) allows these loops to unroll again.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_expression_operation.py