nir/deref: Add some deref cleanup functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Mar 2018 00:32:07 +0000 (17:32 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:15:53 +0000 (20:15 -0700)
commit8b7aa66169f9d675f83c483b3c7af38007e7e056
tree881cb6611af8ebc4c57215b49873cba746ecfafb
parenta80fa2766ec1e3e6575d06254e42da5868f43885
nir/deref: Add some deref cleanup functions

Sometimes it's useful for a pass to be able to clean up its own derefs
instead of waiting for DCE.  This little helper makes it very easy.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c