nir/nir_opt_move: handle non-SSA defs
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 18 Feb 2022 10:23:32 +0000 (11:23 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Feb 2022 11:36:00 +0000 (11:36 +0000)
commitf1d20ec67c3f186886b97de94f74484650f8fda1
tree1552ce8d2bf52e27bd1cb4beea9fbdf032449e69
parentfe2249eac504471306f8f0d2ff3f4ba759b91e28
nir/nir_opt_move: handle non-SSA defs

We just skip register defs and avoid moving register reads across them.
This allows us to run this pass in non-SSA form.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15056>
src/compiler/nir/nir_opt_move.c