]> git.tdb.fi Git - libs/gl.git/commit
Implement constant folding in the GLSL compiler
authorMikko Rasa <tdb@tdb.fi>
Mon, 15 Mar 2021 09:05:12 +0000 (11:05 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 15 Mar 2021 09:15:21 +0000 (11:15 +0200)
commit5e4204ecaf54f49b63587ef5cd669a1b3838e0e9
tree3f233e27a74de9540b474028bf504a63af0e9488
parent21744dfe3d07a94dfdd508b801932d5bfd015a99
Implement constant folding in the GLSL compiler

This replaces the old expression evaluator with a more comprehensive
solution.  Folding constant expressions may open up further possibilities
for inlining.
source/glsl/compiler.cpp
source/glsl/evaluate.cpp [deleted file]
source/glsl/evaluate.h [deleted file]
source/glsl/optimize.cpp
source/glsl/optimize.h
tests/glsl/complex_constant_condition_removal.glsl [new file with mode: 0644]
tests/glsl/constant_last_argument.glsl [new file with mode: 0644]
tests/glsl/dead_loop_removal.glsl [new file with mode: 0644]