From 3293248439bb864ef96a983566c0e81602421093 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 19 Mar 2024 20:54:57 -0500 Subject: [PATCH] nir/repair_ssa: Support unstructured control-flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alyssa Rosenzweig Reviewed-by: Daniel Schürmann Part-of: --- src/compiler/nir/nir_repair_ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_repair_ssa.c b/src/compiler/nir/nir_repair_ssa.c index 340cadb50b1..e69bf9bbf9e 100644 --- a/src/compiler/nir/nir_repair_ssa.c +++ b/src/compiler/nir/nir_repair_ssa.c @@ -154,7 +154,7 @@ nir_repair_ssa_impl(nir_function_impl *impl) nir_metadata_require(impl, nir_metadata_block_index | nir_metadata_dominance); - nir_foreach_block(block, impl) { + nir_foreach_block_unstructured(block, impl) { nir_foreach_instr_safe(instr, block) { nir_foreach_def(instr, repair_ssa_def, &state); }