Add an ir_if simplification pass.
authorEric Anholt <eric@anholt.net>
Thu, 15 Apr 2010 00:03:03 +0000 (17:03 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 15 Apr 2010 00:05:13 +0000 (17:05 -0700)
commit5ba94206083fcd678febd6cac0231f35c0f1b77a
tree79311ea6e69d971c8a8c34a7624da4a9f203b2c1
parent60be7626b829af7e1d07330b9a88468924ba350e
Add an ir_if simplification pass.

This is relatively simple at the moment, recognizing only constant
values, and not (for example) values that are restricted to a range
that make the branching constant.  However, it does remove 59 lines
from the printout of CorrectParse2.vert.
Makefile.am
glsl_parser_extras.cpp
ir.h
ir_if_simplification.cpp [new file with mode: 0644]
ir_if_simplification.h [new file with mode: 0644]