nir/algebraic: Remove some redundant b2f logic-op reduction patterns
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 12 Jan 2021 20:51:33 +0000 (12:51 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 20 Feb 2021 01:31:24 +0000 (17:31 -0800)
commitd9b5bce85ad99b827a859191307852e88c2707e1
tree2b8f85ec4a3b0a98e7e72caf2f7405046e846f7c
parent7e127c1fca6bd934469f4803dde54842fbd100da
nir/algebraic: Remove some redundant b2f logic-op reduction patterns

There are patterns that will re-write the fmin or fmax part into a form
that other patterns will gradually convert to the same ior or iand.  For
example,

    fmax(b2f(a), b2f(b)) != 0
    b2f(a || b) != 0
    a || b

No shader-db or fossil-db changes on any Intel platform.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9122>
src/compiler/nir/nir_opt_algebraic.py