nir/opt_vectorize: fix srcs_equal() with two different non-const
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 8 Jan 2021 15:23:07 +0000 (15:23 +0000)
committerMarge Bot <eric+marge@anholt.net>
Sat, 9 Jan 2021 11:14:05 +0000 (11:14 +0000)
commitb634d7f3e2b09b2f98c02397aba2f065749e2d2a
treefcc7eabdad1c17463f2f294d4237cb82a892fd56
parentbdf316ae7b06674f3ef15b4ed59a28807931de19
nir/opt_vectorize: fix srcs_equal() with two different non-const

To match hash_alu_src(), this should return false if both are different
non-const ssa defs.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8391>
src/compiler/nir/nir_opt_vectorize.c