nir: Update num_blocks in sort_unstructured_blocks

Cc: mesa-stable
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33219>
This commit is contained in:
Mel Henning 2025-01-25 12:27:08 -05:00
parent 6bd1d12137
commit 4ab5f0240a

View file

@ -939,6 +939,7 @@ nir_sort_unstructured_blocks(nir_function_impl *impl)
assert(blocks[i].index == 0);
assert(blocks[i].block == NULL);
}
impl->num_blocks = count;
foreach_list_typed_safe(nir_cf_node, node, node, &dead_blocks)
cleanup_cf_node(node, impl);