pan/mdg: Optimize liveness computation in DCE
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 6 May 2020 21:34:09 +0000 (17:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 May 2020 17:06:34 +0000 (17:06 +0000)
commitfc06b8b7dc27d9e0b1a84e898d9f42465bd491e4
treecc6e776de5c4c66cffa41fa32d71e8d1b0faf5b0
parentc24dfc9da42abadf079b012f0d6e52fb4c829112
pan/mdg: Optimize liveness computation in DCE

Rather than recompute liveness every block, compute it just once for the
whole shader, which ends up more efficient.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5123>
src/panfrost/midgard/compiler.h
src/panfrost/midgard/midgard_compile.c
src/panfrost/midgard/midgard_opt_dce.c