nir: Reduce indirection
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 6 Apr 2023 21:14:44 +0000 (17:14 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 23:48:03 +0000 (23:48 +0000)
commit2285b5daae40788327030ae259f47397c489dcd0
tree254cfc0e7fd2f64509f8db040f0d46cc45dfb018
parent373bd37b85e5f467eed02d3bc345b84a509b2081
nir: Reduce indirection

A source used by an if is necessarily the condition of that if.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22343>
src/compiler/nir/nir.c