From 9aafb91f0e50be5e5347304deca8206c51617cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Tue, 10 Aug 2021 13:15:25 +0200 Subject: [PATCH] microsoft/compiler: preserve all metadata when upcast_phi doesn't make progress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Ĺšlusarz Reviewed-by: Jesse Natalie Part-of: --- src/microsoft/compiler/dxil_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microsoft/compiler/dxil_nir.c b/src/microsoft/compiler/dxil_nir.c index 7cb20ae5c28..e7ecaeabf48 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;