mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
nir/lower_returns: Repair SSA after doing return lowering
This commit is contained in:
parent
b11825590d
commit
61ba97522e
1 changed files with 3 additions and 1 deletions
|
|
@ -224,8 +224,10 @@ nir_lower_returns_impl(nir_function_impl *impl)
|
|||
|
||||
bool progress = lower_returns_in_cf_list(&impl->body, &state);
|
||||
|
||||
if (progress)
|
||||
if (progress) {
|
||||
nir_metadata_preserve(impl, nir_metadata_none);
|
||||
nir_repair_ssa_impl(impl);
|
||||
}
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue