summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dce.c
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2016-04-13 16:25:34 -0400
committerJason Ekstrand <[email protected]>2016-04-20 09:47:05 -0700
commitb6dc940ec273252678d40707d300851fa1c85ea5 (patch)
tree3709a76d6d2bff986f8d8ee0700c3fc072c68f48 /src/compiler/nir/nir_opt_dce.c
parent7143068296aaca8c5af3469c013a7c2a850aee84 (diff)
nir: rename nir_foreach_block*() to nir_foreach_block*_call()
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_dce.c')
-rw-r--r--src/compiler/nir/nir_opt_dce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_dce.c b/src/compiler/nir/nir_opt_dce.c
index cab09dfffc3..ee656ac2a67 100644
--- a/src/compiler/nir/nir_opt_dce.c
+++ b/src/compiler/nir/nir_opt_dce.c
@@ -151,7 +151,7 @@ nir_opt_dce_impl(nir_function_impl *impl)
struct exec_list *worklist = ralloc(NULL, struct exec_list);
exec_list_make_empty(worklist);
- nir_foreach_block(impl, init_block_cb, worklist);
+ nir_foreach_block_call(impl, init_block_cb, worklist);
while (!exec_list_is_empty(worklist)) {
nir_instr *instr = worklist_pop(worklist);
@@ -161,7 +161,7 @@ nir_opt_dce_impl(nir_function_impl *impl)
ralloc_free(worklist);
bool progress = false;
- nir_foreach_block(impl, delete_block_cb, &progress);
+ nir_foreach_block_call(impl, delete_block_cb, &progress);
if (progress)
nir_metadata_preserve(impl, nir_metadata_block_index |