mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 17:38:08 +02:00
nir/opt_cp: use nir_block_get_following_if()
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
aaaa22c775
commit
958300137f
1 changed files with 3 additions and 7 deletions
|
|
@ -250,13 +250,9 @@ copy_prop_block(nir_block *block, void *_state)
|
|||
*progress = true;
|
||||
}
|
||||
|
||||
if (block->cf_node.node.next != NULL && /* check that we aren't the end node */
|
||||
!nir_cf_node_is_last(&block->cf_node) &&
|
||||
nir_cf_node_next(&block->cf_node)->type == nir_cf_node_if) {
|
||||
nir_if *if_stmt = nir_cf_node_as_if(nir_cf_node_next(&block->cf_node));
|
||||
if (copy_prop_if(if_stmt))
|
||||
*progress = true;
|
||||
}
|
||||
nir_if *if_stmt = nir_block_get_following_if(block);
|
||||
if (if_stmt && copy_prop_if(if_stmt))
|
||||
*progress = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue