nir: remove duplicated foreach loop

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>
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2017-01-09 22:45:57 +01:00 committed by Jason Ekstrand
parent 2bae2fa094
commit 5b4fa21d53
1 changed files with 0 additions and 1 deletions

View 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;