mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 00:40:09 +01:00
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:
parent
018f4f1c27
commit
666bad5d22
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue