nir: Recognize mul(b2f(a), b2f(b)) as a logical AND.
authorMatt Turner <mattst88@gmail.com>
Wed, 18 Mar 2015 06:30:32 +0000 (23:30 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Mar 2015 21:43:37 +0000 (14:43 -0700)
commitc31158d2cb06a864cf44d6d4f2c539e359990d3d
tree755cab67b154fe26532dbf32b054a17d6c508fa7
parentb481ebbe399fdc6386fd52f890ba7c310d333ed5
nir: Recognize mul(b2f(a), b2f(b)) as a logical AND.

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

total instructions in shared programs: 6205448 -> 6204391 (-0.02%)
instructions in affected programs:     284030 -> 282973 (-0.37%)
helped:                                903
HURT:                                  6

Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opt_algebraic.py