mirror of https://gitlab.freedesktop.org/mesa/mesa
pan/bi: Inline node_to_index
One user, now trivial. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
This commit is contained in:
parent
46e6e99f09
commit
a4eebb556a
|
@ -1137,7 +1137,7 @@ bi_register_allocate(bi_context *ctx)
|
|||
spill_count = ALIGN_POT(spill_count, 16);
|
||||
|
||||
spill_count += bi_spill_register(ctx,
|
||||
bi_node_to_index(spill_node, bi_max_temp(ctx)),
|
||||
bi_get_index(spill_node, false, 0),
|
||||
spill_count);
|
||||
|
||||
/* In case the spill affected an instruction with tied
|
||||
|
|
|
@ -948,15 +948,6 @@ bi_dest_index(nir_dest *dst)
|
|||
return bi_get_index(dst->ssa.index, false, 0);
|
||||
}
|
||||
|
||||
static inline bi_index
|
||||
bi_node_to_index(unsigned node, unsigned node_count)
|
||||
{
|
||||
assert(node < node_count);
|
||||
assert(node_count < ~0u);
|
||||
|
||||
return bi_get_index(node, false, 0);
|
||||
}
|
||||
|
||||
/* Iterators for Bifrost IR */
|
||||
|
||||
#define bi_foreach_block(ctx, v) \
|
||||
|
|
Loading…
Reference in New Issue