nir: Recognize a pattern for doing b2f without the opcode.
authorEric Anholt <eric@anholt.net>
Mon, 30 Mar 2015 05:59:39 +0000 (22:59 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2015 17:57:01 +0000 (10:57 -0700)
commit6e8d4a2f8043a3a7a28175326e63770aa9511ee7
tree7e8502480d2b8006471d0202a650ef53fb06bd61
parent26261bca2137eb1ca57e53f4efb95bcb3f1419df
nir: Recognize a pattern for doing b2f without the opcode.

Since we have patterns based on b2f, generate them if we see the b2f
equivalent using an iand.  This is common when generating NIR from TGSI.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opt_algebraic.py