4c28c5b074
Specifically we would bail out previously when encountering any control flow, now we would optimize it even when the second ARL/ARR is inside a lower level if/else branch. shader-db RV530: total instructions in shared programs: 132020 -> 131924 (-0.07%) instructions in affected programs: 3374 -> 3278 (-2.85%) helped: 4 HURT: 0 RV370: no change (no control flow there) Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23560>