nir: Add and use nir_foreach_block_unstructured helpers
[mesa.git] / src / compiler / nir / nir_deref.c
index 59805cdbd01f7ffcf68384babbd724e5697121db..4191b7b75992102cd0b25b978b8edf12da5c53c2 100644 (file)
@@ -735,7 +735,7 @@ nir_rematerialize_derefs_in_use_blocks_impl(nir_function_impl *impl)
    struct rematerialize_deref_state state = { 0 };
    nir_builder_init(&state.builder, impl);
 
-   nir_foreach_block(block, impl) {
+   nir_foreach_block_unstructured(block, impl) {
       state.block = block;
 
       /* Start each block with a fresh cache */