nir: Transform expressions of b2f(a) and b2f(b) to a && b
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Aug 2018 02:31:22 +0000 (19:31 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 4 Aug 2018 08:12:03 +0000 (01:12 -0700)
commit1713c9718133aeec14c2776f1e2c5e8d75b29712
treef6ea7292e5cd079746aa0ecef896a33c28c83430
parent4425f4786a2ea2fe8aeca4a6be3ae82b468049b0
nir: Transform expressions of b2f(a) and b2f(b) to a && b

No changes on any Gen platform.

v2: s/fmax/fmin/.  Noticed by Thomas Helland.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
src/compiler/nir/nir_opt_algebraic.py