nir: Handle nir_op_mov properly in opt_shrink_vectors
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 15 Aug 2023 16:19:00 +0000 (11:19 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 16 Aug 2023 21:42:30 +0000 (21:42 +0000)
commitf9a17c6fef92b1316c9a06465712e094f33add68
tree93dceeee80355341a964bc7e3997ffb3ba7f8ca4
parent9bcc9597a5bb82f2013ea70bc8daa0bfd233b4c3
nir: Handle nir_op_mov properly in opt_shrink_vectors

If the opcode is a mov, it falls into the nir_alu_src_is_trivial_ssa
case, not the vec case.

Fixes: 94eff7ccd866 ("nir: shrink phi nodes in nir_opt_shrink_vectors")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24704>
src/compiler/nir/nir_opt_shrink_vectors.c