nir/algebraic: mark some optimizations with fsat(NaN) as inexact
[mesa.git] / src / compiler / nir / nir_opt_trivial_continues.c
index ab1319be9ce6ef0544344caa0307cea0f6a5c8a6..496811965acd94ab1216361cc7d3d6a0c67d3a8c 100644 (file)
@@ -128,8 +128,10 @@ nir_opt_trivial_continues(nir_shader *shader)
          nir_metadata_preserve(function->impl, nir_metadata_none);
 
          /* If that made progress, we're no longer really in SSA form. */
-         nir_convert_to_ssa_impl(function->impl);
+         nir_lower_regs_to_ssa_impl(function->impl);
          progress = true;
+      } else {
+         nir_metadata_preserve(function->impl, nir_metadata_all);
       }
    }