diff options
author | Jason Ekstrand <[email protected]> | 2016-10-05 19:56:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-06 09:16:39 -0700 |
commit | ae032e5ea61dac3c63d74056174939e5ec091629 (patch) | |
tree | 86684d642726e12aff0914b62a74f8c4c30321b1 /src/compiler/nir/nir_control_flow.c | |
parent | 2ed17d46de045404042f13c6591895a1cf31b167 (diff) |
nir: Remove some no longer needed asserts
Now that the NIR casting functions have type assertions, we have a bunch of
assertions that aren't needed anymore.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_control_flow.c')
-rw-r--r-- | src/compiler/nir/nir_control_flow.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/compiler/nir/nir_control_flow.c b/src/compiler/nir/nir_control_flow.c index 380e8aa07c9..d33819d56da 100644 --- a/src/compiler/nir/nir_control_flow.c +++ b/src/compiler/nir/nir_control_flow.c @@ -154,8 +154,6 @@ link_block_to_non_block(nir_block *block, nir_cf_node *node) * any predecessors that need to be unlinked. */ - assert(node->type == nir_cf_node_loop); - nir_loop *loop = nir_cf_node_as_loop(node); nir_block *loop_header_block = nir_loop_first_block(loop); @@ -300,7 +298,6 @@ block_add_normal_succs(nir_block *block) nir_cf_node *parent = block->cf_node.parent; if (parent->type == nir_cf_node_if) { nir_cf_node *next = nir_cf_node_next(parent); - assert(next->type == nir_cf_node_block); nir_block *next_block = nir_cf_node_as_block(next); link_blocks(block, next_block, NULL); @@ -312,7 +309,6 @@ block_add_normal_succs(nir_block *block) link_blocks(block, head_block, NULL); insert_phi_undef(head_block, block); } else { - assert(parent->type == nir_cf_node_function); nir_function_impl *impl = nir_cf_node_as_function(parent); link_blocks(block, impl->end_block, NULL); } @@ -326,7 +322,6 @@ block_add_normal_succs(nir_block *block) link_blocks(block, first_then_block, first_else_block); } else { - assert(next->type == nir_cf_node_loop); nir_loop *next_loop = nir_cf_node_as_loop(next); nir_block *first_block = nir_loop_first_block(next_loop); @@ -473,7 +468,6 @@ nir_handle_add_jump(nir_block *block) link_blocks(block, first_block, NULL); } else { nir_cf_node *after = nir_cf_node_next(&loop->cf_node); - assert(after->type == nir_cf_node_block); nir_block *after_block = nir_cf_node_as_block(after); link_blocks(block, after_block, NULL); } |