nir/cf: reimplement nir_cf_node_remove() using the new API
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 22 Jul 2015 02:54:35 +0000 (19:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 24 Aug 2015 20:31:42 +0000 (13:31 -0700)
commitd7971b41ce3bd5ffce9580b3796b40d3591d6e5e
tree2a8d47dc6b861b8f4e6065a2ed1c273ff5018f6a
parentfc7f2d2364a98d4ec8fb8627b03c6f84b353998c
nir/cf: reimplement nir_cf_node_remove() using the new API

This gives us some testing of it. Also, the old nir_cf_node_remove()
wasn't handling phi nodes correctly and was calling cleanup_cf_node()
too late.

Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir_control_flow.c
src/glsl/nir/nir_control_flow.h