[Mesa-dev] [PATCH] nir: make use of nir_cf_list_extract() helper
Kenneth Graunke
kenneth at whitecape.org
Fri Aug 5 08:51:54 UTC 2016
On Friday, August 5, 2016 11:08:20 AM PDT Timothy Arceri wrote:
> ---
> src/compiler/nir/nir_opt_dead_cf.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c
> index 81c1b65..3551124 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);
> }
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160805/b69982b8/attachment.sig>
More information about the mesa-dev
mailing list