nir: Return a cursor from nir_instr_remove
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Mar 2018 16:52:04 +0000 (09:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 31 Mar 2018 00:20:27 +0000 (17:20 -0700)
commita1452a94fca458c1129f527b775e1124a449ed2b
tree99ec39fd4bb4a256d4a111a98198a425f3e69ab4
parent956f17395bfcf7f8ce9dd5ac9fd14a13e86f3a8f
nir: Return a cursor from nir_instr_remove

Because nir_instr_remove is an inline wrapper around nir_instr_remove_v,
the compiler should be able to tell that the return value is unused and
not emit the extra code in most cases.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_copy_prop_vars.c