spirv: parse unstructured CFG
v2 (Boris Brezillon): handle functions with return values v3: call structurizer v4: entire rewrite v5: fix handling of already visited default branches v2 (Jason Ekstrand): Stop walking hash tables Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Tested-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2401>
This commit is contained in:
@@ -732,8 +732,6 @@ reduce_cursor(nir_cursor cursor)
|
||||
{
|
||||
switch (cursor.option) {
|
||||
case nir_cursor_before_block:
|
||||
assert(nir_cf_node_prev(&cursor.block->cf_node) == NULL ||
|
||||
nir_cf_node_prev(&cursor.block->cf_node)->type != nir_cf_node_block);
|
||||
if (exec_list_is_empty(&cursor.block->instr_list)) {
|
||||
/* Empty block. After is as good as before. */
|
||||
cursor.option = nir_cursor_after_block;
|
||||
|
Reference in New Issue
Block a user