nir: Optimize useless comparisons against true/false.
authorMatt Turner <mattst88@gmail.com>
Wed, 2 Dec 2015 00:13:11 +0000 (16:13 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 8 Dec 2015 23:41:08 +0000 (15:41 -0800)
commit3a7f95b3aa7397aa8a118d2634fdc5cf8f84f989
tree0a8b97333d3d015c8a1baee932fcb244fcf3553f
parent9e9e6fc8f1458c311474becad8c52e986698d92d
nir: Optimize useless comparisons against true/false.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> [v1]
Reviewed-by: Eric Anholt <eric@anholt.net> [v1]
v2: Move new rule to Boolean simplification section
    Add a a@bool != true simplification

Suggested-by: Neil Roberts <neil@linux.intel.com>
src/glsl/nir/nir_opt_algebraic.py