glsl: Add a quick hack to constant folding to reduce duplicated work.
authorEric Anholt <eric@anholt.net>
Thu, 26 Aug 2010 17:42:47 +0000 (10:42 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 Aug 2010 17:53:20 +0000 (10:53 -0700)
commit2db7bb9c665d13fd067109b1171eedd92764791d
treed9e553a7d4e5ffa1293b7040f44c7bdc125d1a5c
parent9b4384c32233c6d75021bcc67552b7ea9dc56de6
glsl: Add a quick hack to constant folding to reduce duplicated work.

Reduces runtime of glsl-max-varyings 92% on my system.
src/glsl/ir_constant_folding.cpp