Skip to content
Snippets Groups Projects
Commit 7cfd87ce authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Emil Velikov
Browse files

nir: Properly invalidate metadata in nir_opt_remove_phis().


Signed-off-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: default avatarEduardo Lima Mitev <elima@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 59bbe268)
parent 5f565d76
No related branches found
No related tags found
Loading
......@@ -92,6 +92,11 @@ remove_phis_impl(nir_function_impl *impl)
nir_foreach_block(impl, remove_phis_block, &progress);
if (progress) {
nir_metadata_preserve(impl, nir_metadata_block_index |
nir_metadata_dominance);
}
return progress;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment