r300: Also consider ALU condition modifiers for loop DCE.
authorEmma Anholt <emma@anholt.net>
Tue, 7 Dec 2021 00:43:45 +0000 (16:43 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Dec 2021 02:35:52 +0000 (02:35 +0000)
commit26b3e2f7cd71bdc58dfddb235ae13b0a3c558495
treee83af06fad696aa41b165040bb87e7cd56e484a6
parentd6fed4ab7db63c5f569032dba2cc95ea3ccfc65c
r300: Also consider ALU condition modifiers for loop DCE.

Since we typically use an ALU op to set the condition modifier for the
IF-BRK-ENDIF, we were particularly likely to remove the increment of the
loop counter!

Cc: mesa-stable
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14117>
src/gallium/drivers/r300/compiler/radeon_dataflow_deadcode.c