nir/validate: don't add instrs not present in shader to shader_gc_list
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 24 Nov 2021 14:17:40 +0000 (14:17 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 21 Feb 2022 11:57:22 +0000 (11:57 +0000)
commita9ac270c5f0e29909b8baf4d3386f75a238b74ad
tree839b5aebd83b2ba50d3f4a788b0134d35d5cbf35
parent925c5f817db7702fdd2c894fd3e122f274af71dd
nir/validate: don't add instrs not present in shader to shader_gc_list

This makes the set smaller and GC list validation faster.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13547>
src/compiler/nir/nir_validate.c