From: Marcin Ślusarz Date: Tue, 10 Aug 2021 11:15:25 +0000 (+0200) Subject: microsoft/compiler: preserve all metadata when upcast_phi doesn't make progress X-Git-Tag: upstream/22.3.5~19342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aafb91f0e50be5e5347304deca8206c51617cbd;p=platform%2Fupstream%2Fmesa.git microsoft/compiler: preserve all metadata when upcast_phi doesn't make progress Signed-off-by: Marcin Ślusarz Reviewed-by: Jesse Natalie Part-of: --- diff --git a/src/microsoft/compiler/dxil_nir.c b/src/microsoft/compiler/dxil_nir.c index 7cb20ae..e7ecaea 100644 --- a/src/microsoft/compiler/dxil_nir.c +++ b/src/microsoft/compiler/dxil_nir.c @@ -1116,6 +1116,8 @@ upcast_phi_impl(nir_function_impl *impl, unsigned min_bit_size) if (progress) { nir_metadata_preserve(impl, nir_metadata_block_index | nir_metadata_dominance); + } else { + nir_metadata_preserve(impl, nir_metadata_all); } return progress;