nir/gather_info: use nir_ssa_scalar_resolved
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 7 Nov 2022 15:02:53 +0000 (15:02 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 20:56:52 +0000 (20:56 +0000)
commit907fbf22ddfaf6c8ec4e56f2848a17d5313d64cc
treee1cb88b8ae2985c11221421cafd74f5e6875cc3f
parent085828ea4dc029a4850fa64c47335f393b5c1c60
nir/gather_info: use nir_ssa_scalar_resolved

This lets us skip copies.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19597>
src/compiler/nir/nir_gather_info.c