mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
nir/from_ssa: Use instr_rewrite_dest
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
parent
cee29220e3
commit
ca11c3c0a4
1 changed files with 1 additions and 3 deletions
|
|
@ -512,9 +512,7 @@ rewrite_ssa_def(nir_ssa_def *def, void *void_state)
|
|||
*/
|
||||
nir_dest *dest = exec_node_data(nir_dest, def, ssa);
|
||||
|
||||
*dest = nir_dest_for_reg(reg);
|
||||
dest->reg.parent_instr = state->instr;
|
||||
list_addtail(&dest->reg.def_link, ®->defs);
|
||||
nir_instr_rewrite_dest(state->instr, dest, nir_dest_for_reg(reg));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue