summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-08-05 11:08:20 +1000
committerTimothy Arceri <timothy.arceri@collabora.com>2016-08-09 13:21:30 +1000
commit8c4d9afb7e770f312079994994f42ddebf7e641c (patch)
tree117ab647a5e3fd000479df4afd052f53a52cf7f7 /src/compiler/nir
parentb1d9c742e92629086dc1bac423a9254ca26a27ff (diff)
downloadexternal_mesa3d-8c4d9afb7e770f312079994994f42ddebf7e641c.tar.gz
external_mesa3d-8c4d9afb7e770f312079994994f42ddebf7e641c.tar.bz2
external_mesa3d-8c4d9afb7e770f312079994994f42ddebf7e641c.zip
nir: make use of nir_cf_list_extract() helper
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_dead_cf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c
index 81c1b650da..3551124649 100644
--- a/src/compiler/nir/nir_opt_dead_cf.c
+++ b/src/compiler/nir/nir_opt_dead_cf.c
@@ -128,8 +128,7 @@ opt_constant_if(nir_if *if_stmt, bool condition)
: &if_stmt->else_list;
nir_cf_list list;
- nir_cf_extract(&list, nir_before_cf_list(cf_list),
- nir_after_cf_list(cf_list));
+ nir_cf_list_extract(&list, cf_list);
nir_cf_reinsert(&list, nir_after_cf_node(&if_stmt->cf_node));
nir_cf_node_remove(&if_stmt->cf_node);
}