nir: add an optimization for removing dead control flow
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 1 May 2015 06:38:17 +0000 (02:38 -0400)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Sep 2015 07:58:17 +0000 (00:58 -0700)
commit1e6ad4b0270fa524e7a6374e1b15540e02668019
tree5b419c384ccf36d38764fcdee72e7c8ddf4cde67
parent0de53ccc8cbee0f63ba25c9e72664b3cbd31be54
nir: add an optimization for removing dead control flow

v2: use nir_cf_node_remove_after() instead of our own broken thing.
v3: use the new control flow modification helpers.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.sources
src/glsl/nir/nir.h
src/glsl/nir/nir_opt_dead_cf.c [new file with mode: 0644]