mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 22:10:10 +01:00
nir: Drop trivial reg handling
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:
parent
579bc1e72e
commit
ca9e2ceeeb
1 changed files with 0 additions and 9 deletions
|
|
@ -1072,19 +1072,10 @@ add_ssa_def_cb(nir_ssa_def *def, void *state)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
|
||||||
add_reg_def_cb(nir_dest *dest, void *state)
|
|
||||||
{
|
|
||||||
nir_instr *instr = state;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_defs_uses(nir_instr *instr)
|
add_defs_uses(nir_instr *instr)
|
||||||
{
|
{
|
||||||
nir_foreach_src(instr, add_use_cb, instr);
|
nir_foreach_src(instr, add_use_cb, instr);
|
||||||
nir_foreach_dest(instr, add_reg_def_cb, instr);
|
|
||||||
nir_foreach_ssa_def(instr, add_ssa_def_cb, instr);
|
nir_foreach_ssa_def(instr, add_ssa_def_cb, instr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue