From: Jason Ekstrand Date: Mon, 18 Jan 2016 17:24:07 +0000 (-0800) Subject: nir/lower_returns: Repair SSA after doing return lowering X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61ba97522ea8551714c5b8b2a90983594c208165;p=mesa.git nir/lower_returns: Repair SSA after doing return lowering --- diff --git a/src/glsl/nir/nir_lower_returns.c b/src/glsl/nir/nir_lower_returns.c index af16676b822..91bb2f7dfeb 100644 --- a/src/glsl/nir/nir_lower_returns.c +++ b/src/glsl/nir/nir_lower_returns.c @@ -224,8 +224,10 @@ nir_lower_returns_impl(nir_function_impl *impl) bool progress = lower_returns_in_cf_list(&impl->body, &state); - if (progress) + if (progress) { nir_metadata_preserve(impl, nir_metadata_none); + nir_repair_ssa_impl(impl); + } return progress; }