nir/repair_ssa: Refactor some use handling
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 7 Apr 2023 21:44:17 +0000 (17:44 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 23:48:03 +0000 (23:48 +0000)
commit9a3507907410730c0acd706886c1e446eb61dae7
tree3b0fae8f609ca42f1c655f155e3a028b2277d9b6
parentdcb59a7672d27936189663e01a77a4608c23d59c
nir/repair_ssa: Refactor some use handling

We can mostly unify the instr-use and if-use handling, which is a lot more
concise.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22343>
src/compiler/nir/nir_repair_ssa.c