glsl: Apply the transformation "(a || a) -> a" in opt_algebraic.
authorEric Anholt <eric@anholt.net>
Thu, 31 Oct 2013 07:10:32 +0000 (00:10 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Nov 2013 19:33:07 +0000 (11:33 -0800)
commitee2704826264eba22d095c3e1e03a8532b7bd1e6
tree8a4339d22b48aaa614689aead2f2f302d951e58f
parent8957c6b887ff09f44e7b491e7a0551e94a265b8d
glsl: Apply the transformation "(a || a) -> a" in opt_algebraic.

total instructions in shared programs: 1732385 -> 1732373 (-0.00%)
instructions in affected programs:     416 -> 404 (-2.88%)
GAINED:                                0
LOST:                                  0

(That's 4 already-short fragment shaders in dota2)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/opt_algebraic.cpp