diff options
author | Connor Abbott <[email protected]> | 2015-05-01 02:38:17 -0400 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-09-01 00:58:17 -0700 |
commit | 1e6ad4b0270fa524e7a6374e1b15540e02668019 (patch) | |
tree | 5b419c384ccf36d38764fcdee72e7c8ddf4cde67 /src/glsl/nir/nir.h | |
parent | 0de53ccc8cbee0f63ba25c9e72664b3cbd31be54 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 9703372fcc0..c65d090eac1 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1825,6 +1825,8 @@ bool nir_opt_cse(nir_shader *shader); bool nir_opt_dce_impl(nir_function_impl *impl); bool nir_opt_dce(nir_shader *shader); +bool nir_opt_dead_cf(nir_shader *shader); + void nir_opt_gcm(nir_shader *shader); bool nir_opt_peephole_select(nir_shader *shader); |