nir: Add algebraic opt for no-op iand.

I lazily generated some of these in VC4 NIR lowering.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
Eric Anholt 2015-07-31 09:12:48 -07:00
parent 63eac5de8f
commit a70f63ab20

View file

@ -132,6 +132,7 @@ optimizations = [
# Logical and bit operations
(('fand', a, 0.0), 0.0),
(('iand', a, a), a),
(('iand', a, ~0), a),
(('iand', a, 0), 0),
(('ior', a, a), a),
(('ior', a, 0), a),