Mesa (main): microsoft/compiler: preserve all metadata when upcast_phi doesn't make progress
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 11 11:56:54 UTC 2021
Module: Mesa
Branch: main
Commit: 9aafb91f0e50be5e5347304deca8206c51617cbd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9aafb91f0e50be5e5347304deca8206c51617cbd
Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date: Tue Aug 10 13:15:25 2021 +0200
microsoft/compiler: preserve all metadata when upcast_phi doesn't make progress
Signed-off-by: Marcin Ślusarz <marcin.slusarz at intel.com>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12324>
---
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;
More information about the mesa-commit
mailing list