nir: fix algebraic optimizations
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 1 Aug 2017 01:26:49 +0000 (18:26 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 1 Aug 2017 19:20:49 +0000 (12:20 -0700)
commitde914615753678c5514733a37ac7d0360a43e525
tree409ad490711813da3040230e583ea2a6464cab71
parentd62063ce316a86e3e091a392b42261138524a1a0
nir: fix algebraic optimizations

The optimizations are only valid for 32-bit integers. They were
mistakenly firing for 64-bit integers as well.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_opt_algebraic.py