mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
nir/phi_builder: Internal users should use nir_phi_builder_value_set_block_def too
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
489ffaf0c1
commit
ba5402ec9a
1 changed files with 2 additions and 2 deletions
|
|
@ -147,7 +147,7 @@ nir_phi_builder_add_value(struct nir_phi_builder *pb, unsigned num_components,
|
|||
* value to the magic value NEEDS_PHI. Later, we create phi nodes
|
||||
* on demand in nir_phi_builder_value_get_block_def().
|
||||
*/
|
||||
val->defs[next->index] = NEEDS_PHI;
|
||||
nir_phi_builder_value_set_block_def(val, next, NEEDS_PHI);
|
||||
|
||||
if (pb->work[next->index] < pb->iter_count) {
|
||||
pb->work[next->index] = pb->iter_count;
|
||||
|
|
@ -232,7 +232,7 @@ nir_phi_builder_value_get_block_def(struct nir_phi_builder_value *val,
|
|||
* 2) To avoid unneeded recreation of phi nodes and undefs.
|
||||
*/
|
||||
for (dom = block; dom && val->defs[dom->index] == NULL; dom = dom->imm_dom)
|
||||
val->defs[dom->index] = def;
|
||||
nir_phi_builder_value_set_block_def(val, dom, def);
|
||||
|
||||
return def;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue