nir: remove duplicated foreach loop
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Mon, 9 Jan 2017 21:45:57 +0000 (22:45 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 10 Jan 2017 01:04:47 +0000 (17:04 -0800)
The foreach loop was called both in the else case and right after. The
indentation seems to indicate that the extra call was from a previous
version with an else section with out curly brackets.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_from_ssa.c

index 2d8eed50560e10b635269e5d914e88566acff089..a8d3e648974447306f30cc9553beebe3ef95ea7e 100644 (file)
@@ -970,7 +970,6 @@ nir_lower_ssa_defs_to_regs_block(nir_block *block)
       } else {
          nir_foreach_dest(instr, dest_replace_ssa_with_reg, &state);
       }
-         nir_foreach_dest(instr, dest_replace_ssa_with_reg, &state);
    }
 
    return state.progress;