nir: Recognize i2b(b2i(x)) as x.
authorMatt Turner <mattst88@gmail.com>
Wed, 6 May 2015 02:56:27 +0000 (19:56 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 7 May 2015 17:51:05 +0000 (10:51 -0700)
commit8ae559971a692b417acb9fec04386e1e95c619ec
tree3a690a17bec3d916f07ea4cc749c8780b93708cc
parent74697e2844a0850ef6b91fb4d34bfa3f6f4bff32
nir: Recognize i2b(b2i(x)) as x.

Helps the same set of programs as the previous commit.

instructions in affected programs:     4490 -> 4346 (-3.21%)
helped:                                8

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
src/glsl/nir/nir_opt_algebraic.py