X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Foptimize.h;h=82fc78cc546e562b5c77ea096112ae2ec59fab38;hb=25629675e83449d986ef8896e830db562a8ae64e;hp=d9fc2d6a7a074367262dc890967ac632b9d22682;hpb=c43203c52410ee8a734e775e7ee7368a12f82ff7;p=libs%2Fgl.git diff --git a/source/glsl/optimize.h b/source/glsl/optimize.h index d9fc2d6a..82fc78cc 100644 --- a/source/glsl/optimize.h +++ b/source/glsl/optimize.h @@ -122,6 +122,7 @@ private: Block *assign_scope = 0; std::vector uses; bool trivial = false; + bool blocked = false; }; std::list expressions; @@ -276,6 +277,7 @@ private: virtual void visit(Iteration &); }; +/** Removes code which is never executed due to flow control statements. */ class UnreachableCodeRemover: private TraversingVisitor { private: