<div dir="ltr"><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br><br></div>and pushed... Thanks!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 9, 2017 at 1:45 PM, Thomas Hindoe Paaboel Andersen <span dir="ltr"><<a href="mailto:phomes@gmail.com" target="_blank">phomes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The foreach loop was called both in the else case<br>
and right after. The indentation seems to indicate<br>
that the extra call was from a previous version<br>
with an else section with out curly brackets.<br>
---<br>
Spotted due to the wrong indentation. The patch is untested<br>
as I do not have the neccesary hardware.<br>
<br>
 src/compiler/nir/nir_from_ssa.<wbr>c | 1 -<br>
 1 file changed, 1 deletion(-)<br>
<br>
diff --git a/src/compiler/nir/nir_from_<wbr>ssa.c b/src/compiler/nir/nir_from_<wbr>ssa.c<br>
index 2d8eed5..a8d3e64 100644<br>
--- a/src/compiler/nir/nir_from_<wbr>ssa.c<br>
+++ b/src/compiler/nir/nir_from_<wbr>ssa.c<br>
@@ -970,7 +970,6 @@ nir_lower_ssa_defs_to_regs_<wbr>block(nir_block *block)<br>
       } else {<br>
          nir_foreach_dest(instr, dest_replace_ssa_with_reg, &state);<br>
       }<br>
-         nir_foreach_dest(instr, dest_replace_ssa_with_reg, &state);<br>
    }<br>
<br>
    return state.progress;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>