]> git.tdb.fi Git - libs/gl.git/commit
Remove conditionals and loops that can be determined to never run
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Nov 2016 13:33:45 +0000 (15:33 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Nov 2016 13:33:45 +0000 (15:33 +0200)
commitba97b71564cadd322fe1bf3d8afe556b38ef0647
tree60102987bd33303602eae561b6366b6746a15f86
parenta0caabaed3aeb8947133d78986bfb4ae5ae3c893
Remove conditionals and loops that can be determined to never run

This is the other major step required for standard shader generation.
Currently the constant condition eliminator is pretty conservative and
will only consider the initialization values of variables.  Globals are
only considered if they are declared const.
source/programcompiler.cpp
source/programcompiler.h