One user, now trivial.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17794>
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
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) \