nir: Don't handle nir_op_mov in get_undef_mask in opt_undef
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 15 Aug 2023 16:27:49 +0000 (11:27 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Aug 2023 21:42:30 +0000 (21:42 +0000)
commit408929289aadaf44e57ef60cb7c1ace4958199c7
tree26e04a0bc3677212541a8878a1cdb42d4f5aabcd
parentf9a17c6fef92b1316c9a06465712e094f33add68
nir: Don't handle nir_op_mov in get_undef_mask in opt_undef

It's unnecessary because earlier parts of the pass will ensure that a
mov of undef is turned into an undef.  It's also wrong because
nir_op_mov has different semantics from nir_op_vecN when it comes to how
sources map to destination components.

Fixes: 5f26c21e6246 ("nir: Expand opt_undef to handle undef channels in a store intrinsic")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24704>
src/compiler/nir/nir_opt_undef.c