nir/opt_undef: Don't rewrite a bcsel to mov
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Thu, 17 Aug 2023 21:38:09 +0000 (16:38 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Aug 2023 01:00:14 +0000 (01:00 +0000)
commit7af0dcbdfc895178b0ae0cd37fd80198e1316fc8
treedab385f24850602021dcd8c49028d7dfc7a24452
parent53294de682a7f54105a419a24f7b2470cb93aeed
nir/opt_undef: Don't rewrite a bcsel to mov

Technically, it's possible because bcsel has more sources than mov.
However, it's not worth the pain of trying to get it right.

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