pan/bi: Add "soft" mode to DCE
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 30 Dec 2020 18:41:14 +0000 (13:41 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 16:55:43 +0000 (16:55 +0000)
commit3ce67cb0d95edf4ecd1e6272a0aa6e56736e4267
tree2bf626871b681e41aac3615ee64dd1ac4e3fefc0
parent623bd2127f7dd80c1eed967f25db0ea17ac8dd4f
pan/bi: Add "soft" mode to DCE

We would like to reuse the DCE logic to eliminate register writes
without eliminating instructions, as a post-sched pass. This type of
operation will eventually generalize to intrinsics that write a register
*and* have side effects (just atomics, I think).

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8723>
src/panfrost/bifrost/bi_opt_dce.c
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/bifrost/compiler.h