nir: add assertions that loops don't have a Continue Construct
Hoping that I didn't miss any, this *should* add assertions to all functions and passes which explicitly handle 'nir_loop'. Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13962>
This commit is contained in:
committed by
Marge Bot
parent
d4b97bf3fa
commit
2bb369dd8d
@@ -317,6 +317,7 @@ convert_to_lcssa(nir_cf_node *cf_node, lcssa_state *state)
|
||||
|
||||
/* first, convert inner loops */
|
||||
nir_loop *loop = nir_cf_node_as_loop(cf_node);
|
||||
assert(!nir_loop_has_continue_construct(loop));
|
||||
foreach_list_typed(nir_cf_node, nested_node, node, &loop->body)
|
||||
convert_to_lcssa(nested_node, state);
|
||||
|
||||
@@ -370,6 +371,7 @@ end:
|
||||
void
|
||||
nir_convert_loop_to_lcssa(nir_loop *loop)
|
||||
{
|
||||
assert(!nir_loop_has_continue_construct(loop));
|
||||
nir_function_impl *impl = nir_cf_node_get_function(&loop->cf_node);
|
||||
|
||||
nir_metadata_require(impl, nir_metadata_block_index);
|
||||
|
||||
Reference in New Issue
Block a user