glsl/ast: Use ir_binop_equal instead of ir_binop_all_equal
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 Sep 2017 20:56:22 +0000 (15:56 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 2 Oct 2017 21:46:10 +0000 (14:46 -0700)
commit4a8086c5a5b230384060fefdb0e92d104e88566c
treed1f5528c1e2cefa47e9567afb072eeaedcee6d7a
parented80746c1c519bb173217fde39266c2af3525a0c
glsl/ast: Use ir_binop_equal instead of ir_binop_all_equal

The values being compared are scalars, so these are the same.  While
I'm here, simplify the run_default condition to just deref the flag
(instead of comparing a scalar bool with true).

There is a bit of extra change in this patch.  When constructing an
ir_binop_equal ir_expression, there is an assertion that the types are
the same.  There is no such assertion for ir_binop_all_equal, so
passing glsl_type::uint_type with glsl_type::int_type was previously
fine.  A bunch of the code motion is to deal with that.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/ast_to_hir.cpp