nir: Combine remove_dead_local_vars() and remove_dead_global_vars().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 27 Mar 2015 23:17:20 +0000 (16:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 2 Apr 2015 21:19:56 +0000 (14:19 -0700)
commitf4e449108060dcaea1b4e1e445b76a8ef43d3a05
tree29dbca9fc2fabd4779d7ae1f94f0d76f85957316
parent33f0f68d590a460f84a0df0de10f29c4a582d7e7
nir: Combine remove_dead_local_vars() and remove_dead_global_vars().

We can just pass a pointer to the list of variables, and reuse the code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_remove_dead_variables.c