nir: Properly clean up CF nodes when we remove them
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 4 Feb 2015 05:39:56 +0000 (21:39 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 Feb 2015 01:06:17 +0000 (17:06 -0800)
commit98ecb25f89c59da2d1bd4b02e12a5e39fac8a9e5
treec9e1f3b2cbf7a54196111c903baba3ab3b0fa811
parente025943134ada9dad02926e8191dd1bd2e7fc95e
nir: Properly clean up CF nodes when we remove them

Previously, if you remved a CF node that still had instructions in it, none
of the use/def information from those instructions would get cleaned up.
Also, we weren't removing if statements from the if_uses of the
corresponding register or SSA def.  This commit fixes both of these
problems

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c