pan/bi: Lower b2f to bcsel
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 10 Mar 2020 12:33:11 +0000 (08:33 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Mar 2020 19:25:59 +0000 (19:25 +0000)
commit08ab7cecd98ca5e128ed3bfc7cc38b0a24b37181
tree2bef002cf3383a0a640538d38eeea88150e7b3f6
parentd3823551b4cbdeda12ddc65dfb7519258627a02e
pan/bi: Lower b2f to bcsel

Since we can get a zero for free and a one inlined into the constant,
the obvious turns out to be efficient (while allowing flexibility for
boolean size).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4139>
src/panfrost/bifrost/bifrost_nir_algebraic.py