nir/lower_double_ops: Rework the if (progress) tree

Fixes: d7d35a9522 "nir/lower_doubles: Use the new NIR lowering..."
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5170>
This commit is contained in:
Jason Ekstrand 2019-05-24 09:05:32 -05:00 committed by Marge Bot
parent 78786a219e
commit 111b0a6699
1 changed files with 8 additions and 1 deletions

View File

@ -753,7 +753,14 @@ nir_lower_doubles_impl(nir_function_impl *impl,
* inlining.
*/
nir_opt_deref_impl(impl);
}
} else if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
} else {
#ifndef NDEBUG
impl->valid_metadata &= ~nir_metadata_not_properly_reset;
#endif
}
return progress;
}