pan/bi: Implement csel fusing
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 21 Mar 2020 22:13:49 +0000 (18:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 22 Mar 2020 03:32:35 +0000 (03:32 +0000)
commit3f786ed10b14ca054e299679af2bfbe8a2dcd5c3
tree1bf03b3c278aca040a5e0a9964bcee3ce1520d0a
parent5a02c871f2367abf7d87569819d7ae4ebb1336d4
pan/bi: Implement csel fusing

When generating csel instructions, we can peak to see what condition is
being used. If we're using a "nice" condition, we can fuse it in with
the csel itself, ideally letting the condition itself be DCE'd away.

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