summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2018-07-05 13:02:30 -0700
committerRafael Antognolli <[email protected]>2018-07-12 14:03:51 -0700
commit1f6ce1973a0d14951b6b4503fbefa78bc80209f3 (patch)
tree5aed05963b5db6c28338dee8e834f5b104297379 /src/compiler/nir
parent13cfd6cc9669b5c4fdc8186d0753ddff24e0fb6c (diff)
nir: delete not needed for reinserted nir_cf_list
It wasn't causing problems since there's nothing to delete, but better be consistent with the rest of existing codebase. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_if.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c
index ec5bf1c9027..a52de120ad6 100644
--- a/src/compiler/nir/nir_opt_if.c
+++ b/src/compiler/nir/nir_opt_if.c
@@ -279,7 +279,6 @@ opt_if_simplification(nir_builder *b, nir_if *nif)
nir_cf_extract(&tmp, nir_before_cf_list(&nif->else_list),
nir_after_cf_list(&nif->else_list));
nir_cf_reinsert(&tmp, nir_before_cf_list(&nif->then_list));
- nir_cf_delete(&tmp);
return true;
}
@@ -345,7 +344,6 @@ opt_if_loop_terminator(nir_if *nif)
nir_cf_extract(&tmp, nir_before_block(first_continue_from_blk),
nir_after_block(continue_from_blk));
nir_cf_reinsert(&tmp, nir_after_cf_node(&nif->cf_node));
- nir_cf_delete(&tmp);
return true;
}