mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
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 <jason@jlekstrand.net>
This commit is contained in:
parent
13cfd6cc96
commit
1f6ce1973a
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue