agx: Fix subdivision coalescing
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 19 Feb 2023 04:33:12 +0000 (23:33 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Mar 2023 14:15:50 +0000 (14:15 +0000)
commit706815488e19114437f3bf3c2c7672dc4fd7e6ad
tree06f176c3a73433019fd9908b5d79c2e662e846c9
parent5ea9c2e6348fbd883c7ee2c34c5e4bd4dfd4cb69
agx: Fix subdivision coalescing

As intended. We can't CSE with partial null destinations in the way, so we
shouldn't eliminate dead destinations until after CSE has run. But we should
still eliminate dead instructions to ensure CSE doesn't move things around
needlessly, hurting register pressure.

Noticed while debugging live range splitting.

No GLES3.0 shader-db changes.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21674>
src/asahi/compiler/agx_compile.c