nir/algebraic: Optimize away an fsat of a b2f
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 1 Mar 2019 22:41:59 +0000 (14:41 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 2 Mar 2019 21:58:56 +0000 (13:58 -0800)
commitbae0c3675174b63c7d7e25556266027b2d4f2b87
treec4f8f07026ffbc2d2941b0d077d90ab43ac36352
parentd1d56f5f9afceab732e46c43010738c4936fb9b9
nir/algebraic: Optimize away an fsat of a b2f

The b2f can only produce 0.0 or 1.0, so the fsat does nothing.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_opt_algebraic.py