X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fnir%2Fnir_from_ssa.c;h=15e89a3e45f646cbaee8b567cd6a570b4a6bad5c;hb=b085016f94721a6c18f7076fc37c450a98e6bdbc;hp=d333752b3715f3e9fb4602ecebddd9725f8bb2b8;hpb=8564916d01b31ca5665a27366e483738541ba5a3;p=mesa.git diff --git a/src/compiler/nir/nir_from_ssa.c b/src/compiler/nir/nir_from_ssa.c index d333752b371..15e89a3e45f 100644 --- a/src/compiler/nir/nir_from_ssa.c +++ b/src/compiler/nir/nir_from_ssa.c @@ -395,7 +395,7 @@ static void aggressive_coalesce_parallel_copy(nir_parallel_copy_instr *pcopy, struct from_ssa_state *state) { - nir_foreach_parallel_copy_entry(pcopy, entry) { + nir_foreach_parallel_copy_entry(entry, pcopy) { if (!entry->src.is_ssa) continue; @@ -582,7 +582,7 @@ resolve_parallel_copy(nir_parallel_copy_instr *pcopy, struct from_ssa_state *state) { unsigned num_copies = 0; - nir_foreach_parallel_copy_entry(pcopy, entry) { + nir_foreach_parallel_copy_entry(entry, pcopy) { /* Sources may be SSA */ if (!entry->src.is_ssa && entry->src.reg.reg == entry->dest.reg.reg) continue; @@ -615,7 +615,7 @@ resolve_parallel_copy(nir_parallel_copy_instr *pcopy, * - Predicessors are recorded from sources and destinations */ int num_vals = 0; - nir_foreach_parallel_copy_entry(pcopy, entry) { + nir_foreach_parallel_copy_entry(entry, pcopy) { /* Sources may be SSA */ if (!entry->src.is_ssa && entry->src.reg.reg == entry->dest.reg.reg) continue; @@ -805,7 +805,7 @@ nir_convert_from_ssa_impl(nir_function_impl *impl, bool phi_webs_only) void nir_convert_from_ssa(nir_shader *shader, bool phi_webs_only) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) nir_convert_from_ssa_impl(function->impl, phi_webs_only); }