glsl: Recognize mul(b2f(a), b2f(b)) as a logical AND.
authorMatt Turner <mattst88@gmail.com>
Wed, 18 Mar 2015 06:28:27 +0000 (23:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Mar 2015 21:43:37 +0000 (14:43 -0700)
commitc8e8f660365515560af029651e593f7ee700401c
tree6000a3fc9cc44e589a13c889f4891d0984020113
parent95729d2458515788ed84c81698033b8ef170bd4e
glsl: Recognize mul(b2f(a), b2f(b)) as a logical AND.

Transform this into b2f(and(a, b)).

total instructions in shared programs: 6190291 -> 6189225 (-0.02%)
instructions in affected programs:     267247 -> 266181 (-0.40%)
helped:                                866

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/opt_algebraic.cpp