nak: Always run nak_nir_mark_lcssa_invariants

We're about to change the way that lcssa is constructed, and we won't
be able to conclude that there are no lcssa phis based on this pass'
progress.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34912>
This commit is contained in:
Mel Henning 2025-05-30 14:48:55 -04:00 committed by Marge Bot
parent 018f4f1c27
commit 666bad5d22

View file

@ -1101,12 +1101,10 @@ nak_postprocess_nir(nir_shader *nir,
if (OPT(nir, nak_nir_rematerialize_load_const))
OPT(nir, nir_opt_dce);
bool lcssa_progress = nir_convert_to_lcssa(nir, false, false);
OPT(nir, nir_convert_to_lcssa, false, false);
if (nak->sm >= 73) {
if (lcssa_progress) {
OPT(nir, nak_nir_mark_lcssa_invariants);
}
OPT(nir, nak_nir_mark_lcssa_invariants);
if (OPT(nir, nak_nir_lower_non_uniform_ldcx)) {
OPT(nir, nir_copy_prop);
OPT(nir, nir_opt_dce);