nir: Add and use a new nir_ssa_def_rewrite_uses_src helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Mar 2021 06:01:15 +0000 (00:01 -0600)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Mar 2021 16:59:55 +0000 (16:59 +0000)
commit13a0ee8a516a1208ffeeba0227f2061a6444e602
tree94e07b81b2578d675cb71064eab866fd1cafb771
parent98a5b9b45407e90f1ae076958388ca5ebacd69af
nir: Add and use a new nir_ssa_def_rewrite_uses_src helper

This is currently an alias for nir_ssa_def_rewrite_uses but we move all
the instances which used it to write a non-SSA source to the newly named
helper.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9383>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_lower_vec_to_movs.c
src/freedreno/vulkan/tu_shader.c