nir: Add a couple of simplifications of csel operations.
authorEric Anholt <eric@anholt.net>
Thu, 29 Jan 2015 23:50:18 +0000 (15:50 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 21 Feb 2015 22:57:14 +0000 (14:57 -0800)
commitdc982f4a859d800ec3eba95d3c55bbe6af8d6518
tree0e9047b3c52fe4860ca5fe6d1a8e29ceef223642
parentc2ece77678c19f6aee1d9a3ef65a1251a59dd2ae
nir: Add a couple of simplifications of csel operations.

vc4 was already cleaning these up, but it does shave 4 NIR instructions in
shader-db.

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