nir/from_ssa: Don't insert store_reg instructions before phis
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sat, 12 Aug 2023 12:32:25 +0000 (14:32 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Aug 2023 19:27:19 +0000 (19:27 +0000)
commit7cf9ff304e02b85cef0cd936b456b658255b7cba
tree4ec5c54f7bafc1141644a477d6138b5111782f8f
parentcbb28eaeaf35ca5581e6d75a1fa15533984d66ce
nir/from_ssa: Don't insert store_reg instructions before phis

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9528
Fixes: ae0408b ("nir/from_ssa: Support register intrinsics")
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24647>
src/compiler/nir/nir_from_ssa.c