nir/opt_undef: Convert to use nir_shader_instructions_pass().
authorEric Anholt <eric@anholt.net>
Thu, 20 Aug 2020 18:56:04 +0000 (11:56 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 23:01:52 +0000 (23:01 +0000)
commitdfb8465341707970e557a96f7989cfc17bba4edc
tree15dad9a04e7aec56c950fe92da6f2ebea75ac9bf
parente5d4bbd840622d43c25cf125aad2440abda3ccdc
nir/opt_undef: Convert to use nir_shader_instructions_pass().

We can't use nir_lower_instructions because we operate on stores which
don't have an SSA def.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6412>
src/compiler/nir/nir_opt_undef.c