Revert "pan/bi: Optimize out redundant jumps to #0x0"
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 24 Feb 2021 16:53:06 +0000 (17:53 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 14:30:19 +0000 (14:30 +0000)
commitf7bbfbaeb5694a238056d68a047f923470bcb8f0
tree21185bc8545027e37d1ce356b981d6e2e31108aa
parent35fe62dad10cdeff0af39009185c85aa59db6a76
Revert "pan/bi: Optimize out redundant jumps to #0x0"

A block that has all its successors empty is not necessarily a leaf
block in the CFG, and removing the JUMP in that causes the shader
to continue executing code from another block instead of exiting.

This reverts commit a496b41d50589191ad2e37a17019aef0dafcb9f2.

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