]> git.tdb.fi Git - libs/gl.git/commit
Rewrite UnusedVariableRemover
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Mar 2021 11:01:12 +0000 (13:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Mar 2021 13:33:38 +0000 (15:33 +0200)
commitd2303923980a08cf6e429a9ce7359d3683c79251
tree3a75f2ef335015d05111a8d6b26b114a31bde7de
parent3e24a1bfd5a259b185ff0f37046dd0489e1908a3
Rewrite UnusedVariableRemover

The old implementation was getting too complex with its multitude of
flags.  The new one is based on the idea of reaching definition analysis
and is much more straightforward.
source/glsl/optimize.cpp
source/glsl/optimize.h
tests/glsl/variable_assignment_subscript.glsl [new file with mode: 0644]