diff options
author | Jason Ekstrand <[email protected]> | 2016-04-26 20:16:21 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:54:48 -0700 |
commit | 8564916d01b31ca5665a27366e483738541ba5a3 (patch) | |
tree | 5b0563e838824f90ed398c0bf64ab3e3339fe7ce /src/compiler/nir/nir_opt_dead_cf.c | |
parent | 707e72f13bb78869ee95d3286980bf1709cba6cf (diff) |
nir: Switch the arguments to nir_foreach_phi_src
This matches the "foreach x in container" pattern found in many other
programming languages. Generated by the following regular expression:
s/nir_foreach_phi_src(\([^,]*\),\s*\([^,]*\))/nir_foreach_phi_src(\2, \1)/
and a similar expression for nir_foreach_phi_src_safe.
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_dead_cf.c')
-rw-r--r-- | src/compiler/nir/nir_opt_dead_cf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_dead_cf.c b/src/compiler/nir/nir_opt_dead_cf.c index ca73e50061b..4b62e55d030 100644 --- a/src/compiler/nir/nir_opt_dead_cf.c +++ b/src/compiler/nir/nir_opt_dead_cf.c @@ -97,7 +97,7 @@ opt_constant_if(nir_if *if_stmt, bool condition) nir_phi_instr *phi = nir_instr_as_phi(instr); nir_ssa_def *def = NULL; - nir_foreach_phi_src(phi, phi_src) { + nir_foreach_phi_src(phi_src, phi) { if (phi_src->pred != last_block) continue; |