nir: Rework nir_scalar_chase_movs a bit
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 15 Aug 2023 15:21:10 +0000 (10:21 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Aug 2023 21:42:30 +0000 (21:42 +0000)
commit87004fa7019afa4a297e78d7b57c4d7164e75c66
tree5685e4f9a339e911ad65905a526351ca857111eb
parentcf796aa885b347f463700620660d6a14f5afe14d
nir: Rework nir_scalar_chase_movs a bit

The cases in the if are the same as the cases we're using for the early
break.  Just check the things and break if it's not a handleable case.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24704>
src/compiler/nir/nir.c