dxil: Use nir_foreach_phi_safe
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 11 May 2023 17:49:02 +0000 (13:49 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 May 2023 14:02:23 +0000 (14:02 +0000)
commit5a0223a2d487ce36e9f362d8a1312e23a9674dd3
treed9136ecb9c3bc85d62447d8c37493f82a88677c8
parentaa6bdbd54a4c824661e4b65eb4fc6a357058f778
dxil: Use nir_foreach_phi_safe

This should be faster, since we're not iterating pointlessly over all the
non-phis after the phi.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22967>
src/microsoft/compiler/dxil_nir.c