nir: Add algebraic opt for int comparisons with identical operands.
authorEric Anholt <eric@anholt.net>
Sat, 7 Feb 2015 01:12:59 +0000 (17:12 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 11 Feb 2015 19:52:38 +0000 (11:52 -0800)
commit56e21647e20db8e3708001a8600c3d8e7d12d841
tree07350472cffd88e79d96252f72b179c097337357
parent2919bdf466295bc3fbf6f6e796ef8d301404d3d9
nir: Add algebraic opt for int comparisons with identical operands.

No change on shader-db on i965.

v2: Reword the comment due to feedback from Erik Faye-Lund

Reviewed-by: Connor Abbott <cwabbott0@gmail.com> (v1)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> (v1)
src/glsl/nir/nir_opt_algebraic.py