diff options
author | Jason Ekstrand <[email protected]> | 2016-04-26 20:34:01 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:54:48 -0700 |
commit | 70f89dd75ee7487d0143fa871bb20cbd29f54da0 (patch) | |
tree | 25f3e951b9e057ec4a6f13be6860aa926912f935 /src/compiler/nir/nir_to_ssa.c | |
parent | 5015260a0598ada4865b2c6086fc669505f64749 (diff) |
nir: Switch the arguments to nir_foreach_def
This matches the "foreach x in container" pattern found in many other
programming languages. Generated by the following regular expression:
s/nir_foreach_def(\([^,]*\),\s*\([^,]*\))/nir_foreach_def(\2, \1)/
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_to_ssa.c')
-rw-r--r-- | src/compiler/nir/nir_to_ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_to_ssa.c b/src/compiler/nir/nir_to_ssa.c index 9ffb2fdfd26..6accdd24b3f 100644 --- a/src/compiler/nir/nir_to_ssa.c +++ b/src/compiler/nir/nir_to_ssa.c @@ -88,7 +88,7 @@ insert_phi_nodes(nir_function_impl *impl) w_start = w_end = 0; iter_count++; - nir_foreach_def(reg, dest) { + nir_foreach_def(dest, reg) { nir_instr *def = dest->reg.parent_instr; if (work[def->block->index] < iter_count) W[w_end++] = def->block; |